TextComponent
A TextComponent is not instantiated, but is the superclass of any text-editing widget.
Method(s) of note:
- public String getSelectedText()
Get the highlighted text from the TextComponent.
- public String getText()
Get all the text in the TextComponent.
- public void setEditable(boolean t)
If noneditable, the user cannot modify the contents of the TextComponent.
- public void setText(String t)
Set the current text contents.