public class


extends BasicTextPaneUI
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.TextUI
       ↳ javax.swing.plaf.basic.BasicTextUI
         ↳ javax.swing.plaf.basic.BasicEditorPaneUI
           ↳ javax.swing.plaf.basic.BasicTextPaneUI

Class Overview

Windows rendition of the component.

Warning: 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 Constructors
Public Methods
static ComponentUI createUI(JComponent c)
Creates a UI for a JTextPane.
Protected Methods
Caret createCaret()
Creates the object to use for a caret.
Inherited Methods
From class javax.swing.plaf.basic.BasicTextPaneUI
From class javax.swing.plaf.basic.BasicEditorPaneUI
From class javax.swing.plaf.basic.BasicTextUI
From class javax.swing.plaf.TextUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object
From interface javax.swing.text.ViewFactory

Public Constructors

public WindowsTextPaneUI ()

Public Methods

public static ComponentUI createUI (JComponent c)

Creates a UI for a JTextPane.

c the styled text component
  • the UI

Protected Methods

protected Caret createCaret ()

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.

  • the caret object