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.


Constructor Index

 o BasicTextPaneUI()
Creates a new BasicTextPaneUI.

Method Index

 o createUI(JComponent)
Creates a UI for the JTextPane.
 o getDefaultMargin()
Gets the default margins for the pane.
 o getEditorKit()
Fetches the EditorKit for the UI.
 o getPropertyPrefix()
Name used as a key to lookup properties through the UIManager.

Constructors

 o BasicTextPaneUI
public BasicTextPaneUI()
Creates a new BasicTextPaneUI.

Methods

 o createUI
public static ComponentUI createUI(JComponent c)
Creates a UI for the JTextPane.

Parameters:
c - the JTextPane object
Returns:
the UI
 o 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
 o getDefaultMargin
public Insets getDefaultMargin()
Gets the default margins for the pane.

Returns:
the margins
Overrides:
getDefaultMargin in class DefaultTextUI
 o 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