Mega Code Archive

 
Categories / Java Tutorial / Swing
 

JTextComponent

JTextComponent describes the common behavior shared by all text components: a Highlighter for selection support, a Caret for navigation throughout the content, a set of commands supported through the actions property (an array of Action implementers), a set of key bindings through a Keymap or InputMap/ActionMap combination, an implementation of the Scrollable interface so that each of the specific text components can be placed within a JScrollPane, and the text stored within the component.