javax.swing.text
Class JTextComponent

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.text.JTextComponent

public abstract class JTextComponent extends JComponent

Constructor Summary
JTextComponent()
          Creates a new JTextComponent.
 
Method Summary
 void copy()
          Transfers the currently selected range in the associated text model to the system clipboard, leaving the contents in the text model.
 void cut()
          Transfers the currently selected range in the associated text model to the system clipboard, removing the contents from the model.
 String getSelectedText()
          Returns the selected text contained in this TextComponent.
 String getText()
          Returns the text contained in this TextComponent.
 boolean isEditable()
          Returns the boolean indicating whether this TextComponent is editable or not.
 void paste()
          Transfers the contents of the system clipboard into the associated text model.
 void replaceSelection(String content)
          Replaces the currently selected content with new content represented by the given string.
 void selectAll()
          Selects all the text in the TextComponent.
 void setEditable(boolean b)
          Sets the specified boolean to indicate whether or not this TextComponent should be editable.
 void setText(String t)
          Sets the text of this TextComponent to the specified text.