Module java.desktop
Package java.awt

Class TextComponent

java.lang.Object
java.awt.Component
java.awt.TextComponent
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
TextArea, TextField

public sealed class TextComponent extends Component implements Accessible permits TextArea, TextField
The TextComponent class is the superclass of any component that allows the editing of some text.

A text component embodies a string of text. The TextComponent class defines a set of methods that determine whether or not this text is editable. If the component is editable, it defines another set of methods that supports a text insertion caret.

In addition, the class defines methods that are used to maintain a current selection from the text. The text selection, a substring of the component's text, is the target of editing operations. It is also referred to as the selected text.

Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for TextComponentSealed class hierarchy graph for TextComponent
Since:
1.0
See Also: