Package javax.swing.text provides classes and interfaces that deal with editable and non editable text components.
Examples of text components are text fields and text areas, of which password fields and document editors are special instantiations. Features that are supported by this package include selection/highlighting, editing, style, and key mapping.