You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.4 KiB
69 lines
1.4 KiB
/*
|
|
* Copyright (c) 1997, 1998, Oracle and/or its affiliates. All rights reserved.
|
|
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
package com.sun.java.swing.plaf.windows;
|
|
|
|
import javax.swing.plaf.*;
|
|
import javax.swing.plaf.basic.*;
|
|
import javax.swing.*;
|
|
import javax.swing.text.Caret;
|
|
|
|
|
|
/**
|
|
* Windows rendition of the component.
|
|
* <p>
|
|
* <strong>Warning:</strong>
|
|
* Serialized objects of this class will not be compatible with
|
|
* future Swing releases. The current serialization support is appropriate
|
|
* for short term storage or RMI between applications running the same
|
|
* version of Swing. A future release of Swing will provide support for
|
|
* long term persistence.
|
|
*/
|
|
public class WindowsEditorPaneUI extends BasicEditorPaneUI
|
|
{
|
|
|
|
/**
|
|
* Creates a UI for a JEditorPane.
|
|
*
|
|
* @param c the configurable text component
|
|
* @return the UI
|
|
*/
|
|
public static ComponentUI createUI(JComponent c) {
|
|
return new WindowsEditorPaneUI();
|
|
}
|
|
|
|
/**
|
|
* Creates the object to use for a caret. By default an
|
|
* instance of WindowsCaret is created. This method
|
|
* can be redefined to provide something else that implements
|
|
* the InputPosition interface or a subclass of DefaultCaret.
|
|
*
|
|
* @return the caret object
|
|
*/
|
|
protected Caret createCaret() {
|
|
return new WindowsTextUI.WindowsCaret();
|
|
}
|
|
}
|