The TextComponent class is the superclass of any component that allows the editing of some text.
TextComponent是任何允许文本的编辑的类的父类。
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.
一个文本组件实现了一个字符串的文本。TextComponent类定义了一组方法,确定是否这个文本是可编辑的。如果组件是可编辑的,它定义了一组方法,支持文本插入符号。
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.
此外,类定义方法用于维持当前选择的文本。文本选择、组件的子字符串的文本,也是编辑操作的目标。也称为选中的文本。