Class BasicTextAreaUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextAreaUI
- All Implemented Interfaces:
ViewFactory
- Direct Known Subclasses:
SynthTextAreaUI
Provides the look and feel for a plain text editor. In this
implementation the default UI is extended to act as a simple
view factory.
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. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans
package.
Please see XMLEncoder
.
-
Nested Class Summary
Nested classes/interfaces declared in class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a view for an element.static ComponentUI
createUI
(JComponent ta) Creates a UI for a JTextArea.int
getBaseline
(JComponent c, int width, int height) Returns the baseline.Returns an enum indicating how the baseline of the component changes as the size changes.The method is overridden to take into account caret width.The method is overridden to take into account caret width.protected String