javax.swing.plaf.basic

Class BasicEditorPaneUI

public class BasicEditorPaneUI extends BasicTextUI

The UI class for {@link JEditorPane}s.
Constructor Summary
BasicEditorPaneUI()
Creates a new BasicEditorPaneUI
Method Summary
static ComponentUIcreateUI(JComponent comp)
Creates an instance of BasicEditorPaneUI for the text component comp.
EditorKitgetEditorKit(JTextComponent textComponent)
Gets the EditorKit for the text component.
protected StringgetPropertyPrefix()
Returns the property prefix to be used by this UI class.

Constructor Detail

BasicEditorPaneUI

public BasicEditorPaneUI()
Creates a new BasicEditorPaneUI

Method Detail

createUI

public static ComponentUI createUI(JComponent comp)
Creates an instance of BasicEditorPaneUI for the text component comp.

Parameters: comp the component for which to create an UI

Returns: the UI for comp

getEditorKit

public EditorKit getEditorKit(JTextComponent textComponent)
Gets the EditorKit for the text component.

Parameters: textComponent the text component for which to fetch the editor kit

getPropertyPrefix

protected String getPropertyPrefix()
Returns the property prefix to be used by this UI class. This is EditorPane in this case.

Returns: EditorPane