All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.basic.BasicTextPaneUI
java.lang.Object
|
+----java.awt.swing.plaf.ComponentUI
|
+----java.awt.swing.plaf.TextUI
|
+----java.awt.swing.text.DefaultTextUI
|
+----java.awt.swing.basic.BasicTextUI
|
+----java.awt.swing.basic.BasicTextAreaUI
|
+----java.awt.swing.basic.BasicTextPaneUI
- public class BasicTextPaneUI
- extends BasicTextAreaUI
Provides the look and feel for a styled text editor.
BasicTextPaneUI()
- Creates a new BasicTextPaneUI.
createUI(JComponent)
- Creates a UI for the JTextPane.
getDefaultMargin()
- Gets the default margins for the pane.
getEditorKit()
- Fetches the EditorKit for the UI.
getPropertyPrefix()
- Name used as a key to lookup properties through the
UIManager.
BasicTextPaneUI
public BasicTextPaneUI()
- Creates a new BasicTextPaneUI.
createUI
public static ComponentUI createUI(JComponent c)
- Creates a UI for the JTextPane.
- Parameters:
- c - the JTextPane object
- Returns:
- the UI
getPropertyPrefix
protected String getPropertyPrefix()
- Name used as a key to lookup properties through the
UIManager. This is used as a prefix to all the standard
text properties.
- Overrides:
- getPropertyPrefix in class BasicTextAreaUI
getDefaultMargin
public Insets getDefaultMargin()
- Gets the default margins for the pane.
- Returns:
- the margins
- Overrides:
- getDefaultMargin in class DefaultTextUI
getEditorKit
public EditorKit getEditorKit()
- Fetches the EditorKit for the UI. This is implemented
to return a shared StyledEditorKit.
- Returns:
- the editor capabilities
- Overrides:
- getEditorKit in class DefaultTextUI
- See Also:
- getEditorKit, StyledEditorKit
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature