Java™ Platform
Standard Ed. 6

Uses of Package
javax.swing.text

Packages that use javax.swing.text
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
javax.accessibility Defines a contract between user-interface components and an assistive technology that provides access to those components. 
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.event Provides for events fired by Swing components. 
javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. 
javax.swing.plaf.basic Provides user interface objects built according to the Basic look and feel. 
javax.swing.plaf.metal Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel. 
javax.swing.plaf.multi Provides user interface objects that combine two or more look and feels. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
javax.swing.text.html Provides the class HTMLEditorKit and supporting classes for creating HTML text editors. 
javax.swing.text.html.parser Provides the default HTML parser, along with support classes. 
javax.swing.text.rtf Provides a class (RTFEditorKit) for creating Rich-Text-Format text editors. 
javax.swing.tree Provides classes and interfaces for dealing with javax.swing.JTree
 

Classes in javax.swing.text used by java.awt
AttributeSet
          A collection of unique attributes.
 

Classes in javax.swing.text used by javax.accessibility
AttributeSet
          A collection of unique attributes.
 

Classes in javax.swing.text used by javax.swing
AttributeSet
          A collection of unique attributes.
BadLocationException
          This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).
Document
           The Document is a container for text that serves as the model for swing text components.
DocumentFilter
          DocumentFilter, as the name implies, is a filter for the Document mutation methods.
EditorKit
          Establishes the set of things needed by a text component to be a reasonably functioning editor for some type of text content.
Element
          Interface to describe a structural piece of a document.
JTextComponent
          JTextComponent is the base class for swing text components.
JTextComponent.AccessibleJTextComponent
          This class implements accessibility support for the JTextComponent class.
JTextComponent.KeyBinding
          Binding record for creating key bindings.
MutableAttributeSet
          A generic interface for a mutable collection of unique attributes.
NavigationFilter
          NavigationFilter can be used to restrict where the cursor can be positioned.
Position.Bias
          A typesafe enumeration to indicate bias to a position in the model.
Style
          A collection of attributes to associate with an element in a document.
StyledDocument
          Interface for a generic styled document.
StyledEditorKit
          This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.
 

Classes in javax.swing.text used by javax.swing.event
Document
           The Document is a container for text that serves as the model for swing text components.
Element
          Interface to describe a structural piece of a document.
 

Classes in javax.swing.text used by javax.swing.plaf
BadLocationException
          This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).
EditorKit
          Establishes the set of things needed by a text component to be a reasonably functioning editor for some type of text content.
JTextComponent
          JTextComponent is the base class for swing text components.
Position.Bias
          A typesafe enumeration to indicate bias to a position in the model.
View
           A very important part of the text package is the View class.
 

Classes in javax.swing.text used by javax.swing.plaf.basic
BadLocationException
          This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).
Caret
          A place within a document view that represents where things can be inserted into the document model.
DefaultCaret
          A default implementation of Caret.
DefaultHighlighter
          Implements the Highlighter interfaces.
EditorKit
          Establishes the set of things needed by a text component to be a reasonably functioning editor for some type of text content.
Element
          Interface to describe a structural piece of a document.
Highlighter
          An interface for an object that allows one to mark up the background with colored areas.
JTextComponent
          JTextComponent is the base class for swing text components.
Keymap
          A collection of bindings of KeyStrokes to actions.
LayeredHighlighter
           
Position.Bias
          A typesafe enumeration to indicate bias to a position in the model.
View
           A very important part of the text package is the View class.
ViewFactory
          A factory to create a view of some portion of document subject.
 

Classes in javax.swing.text used by javax.swing.plaf.metal
ViewFactory
          A factory to create a view of some portion of document subject.
 

Classes in javax.swing.text used by javax.swing.plaf.multi
BadLocationException
          This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).
EditorKit
          Establishes the set of things needed by a text component to be a reasonably functioning editor for some type of text content.
JTextComponent
          JTextComponent is the base class for swing text components.
Position.Bias
          A typesafe enumeration to indicate bias to a position in the model.
View
           A very important part of the text package is the View class.
 

Classes in javax.swing.text used by javax.swing.text
AbstractDocument
          An implementation of the document interface to serve as a basis for implementing various kinds of documents.
AbstractDocument.AbstractElement
          Implements the abstract part of an element.
AbstractDocument.AttributeContext
          An interface that can be used to allow MutableAttributeSet implementations to use pluggable attribute compression techniques.
AbstractDocument.BranchElement
          Implements a composite element that contains other elements.
AbstractDocument.Content
          Interface to describe a sequence of character content that can be edited.
AbstractDocument.DefaultDocumentEvent
          Stores document changes as the document is being modified.
AsyncBoxView.ChildLocator
          A class to manage the effective position of the child views in a localized area while changes are being made around the localized area.
AsyncBoxView.ChildState
          A record representing the layout state of a child view.
AttributeSet
          A collection of unique attributes.
AttributeSet.CharacterAttribute
          This interface is the type signature that is expected to be present on any attribute key that contributes to character level presentation.
AttributeSet.ColorAttribute
          This interface is the type signature that is expected to be present on any attribute key that contributes to presentation of color.
AttributeSet.FontAttribute
          This interface is the type signature that is expected to be present on any attribute key that contributes to the determination of what font to use to render some text.
AttributeSet.ParagraphAttribute
          This interface is the type signature that is expected to be present on any attribute key that contributes to the paragraph level presentation.
BadLocationException
          This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).
BoxView
          A view that arranges its children into a box shape by tiling its children along an axis.
Caret
          A place within a document view that represents where things can be inserted into the document model.
CompositeView
          CompositeView is an abstract View implementation which manages one or more child views.
DefaultEditorKit
          This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.
DefaultFormatter
          DefaultFormatter formats aribtrary objects.
DefaultStyledDocument.ElementBuffer
          Class to manage changes to the element hierarchy.
DefaultStyledDocument.ElementSpec
          Specification for building elements.
Document
           The Document is a container for text that serves as the model for swing text components.
DocumentFilter
          DocumentFilter, as the name implies, is a filter for the Document mutation methods.
DocumentFilter.FilterBypass
          Used as a way to circumvent calling back into the Document to change it.
EditorKit
          Establishes the set of things needed by a text component to be a reasonably functioning editor for some type of text content.
Element
          Interface to describe a structural piece of a document.
ElementIterator
           ElementIterator, as the name suggests, iteratates over the Element tree.
FieldView
          Extends the multi-line plain text view to be suitable for a single-line editor view.
FlowView
          A View that tries to flow it's children into some partially constrained space.
FlowView.FlowStrategy
          Strategy for maintaining the physical form of the flow.
GlyphView
          A GlyphView is a styled chunk of text that represents a view mapped over an element in the text model.
GlyphView.GlyphPainter
          A class to perform rendering of the glyphs.
Highlighter
          An interface for an object that allows one to mark up the background with colored areas.
Highlighter.Highlight
           
Highlighter.HighlightPainter
          Highlight renderer.
InternationalFormatter
          InternationalFormatter extends DefaultFormatter, using an instance of java.text.Format to handle the conversion to a String, and the conversion from a String.
JTextComponent
          JTextComponent is the base class for swing text components.
JTextComponent.DropLocation
          Represents a drop location for JTextComponents.
JTextComponent.KeyBinding
          Binding record for creating key bindings.
Keymap
          A collection of bindings of KeyStrokes to actions.
LayeredHighlighter
           
LayeredHighlighter.LayerPainter
          Layered highlight renderer.
LayoutQueue
          A queue of text layout tasks.
MutableAttributeSet
          A generic interface for a mutable collection of unique attributes.
NavigationFilter
          NavigationFilter can be used to restrict where the cursor can be positioned.
NavigationFilter.FilterBypass
          Used as a way to circumvent calling back into the caret to position the cursor.
PlainView
          Implements View interface for a simple multi-line text view that has text in one font and color.
Position
          Represents a location within a document.
Position.Bias
          A typesafe enumeration to indicate bias to a position in the model.
Segment
          A segment of a character array representing a fragment of text.
Style
          A collection of attributes to associate with an element in a document.
StyleConstants
           A collection of well known or common attribute keys and methods to apply to an AttributeSet or MutableAttributeSet to get/set the properties in a typesafe manner.
StyleContext
          A pool of styles and their associated resources.
StyleContext.SmallAttributeSet
          This class holds a small number of attributes in an array.
StyledDocument
          Interface for a generic styled document.
StyledEditorKit
          This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.
StyledEditorKit.StyledTextAction
          An action that assumes it's being fired on a JEditorPane with a StyledEditorKit (or subclass) installed.
TabableView
          Interface for Views that have size dependent upon tabs.
TabExpander
          Simple interface to allow for different types of implementations of tab expansion.
TableView.TableCell
          Deprecated. A table cell can now be any View implementation.
TableView.TableRow
          View of a row in a row-centric table.
TabSet
          A TabSet is comprised of many TabStops.
TabStop
          This class encapsulates a single tab stop (basically as tab stops are thought of by RTF).
TextAction
          An Action implementation useful for key bindings that are shared across a number of different text components.
View
           A very important part of the text package is the View class.
ViewFactory
          A factory to create a view of some portion of document subject.
 

Classes in javax.swing.text used by javax.swing.text.html
AbstractDocument
          An implementation of the document interface to serve as a basis for implementing various kinds of documents.
AbstractDocument.AbstractElement
          Implements the abstract part of an element.
AbstractDocument.AttributeContext
          An interface that can be used to allow MutableAttributeSet implementations to use pluggable attribute compression techniques.
AbstractDocument.BranchElement
          Implements a composite element that contains other elements.
AbstractDocument.Content
          Interface to describe a sequence of character content that can be edited.
AbstractDocument.DefaultDocumentEvent
          Stores document changes as the document is being modified.
AbstractDocument.LeafElement
          Implements an element that directly represents content of some kind.
AbstractWriter
          AbstractWriter is an abstract class that actually does the work of writing out the element tree including the attributes.
AttributeSet
          A collection of unique attributes.
BadLocationException
          This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).
BoxView
          A view that arranges its children into a box shape by tiling its children along an axis.
ComponentView
          Component decorator that implements the view interface.
CompositeView
          CompositeView is an abstract View implementation which manages one or more child views.
DefaultEditorKit
          This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.
DefaultStyledDocument
          A document that can be marked up with character and paragraph styles in a manner similar to the Rich Text Format.
DefaultStyledDocument.ElementSpec
          Specification for building elements.
Document
           The Document is a container for text that serves as the model for swing text components.
EditorKit
          Establishes the set of things needed by a text component to be a reasonably functioning editor for some type of text content.
Element
          Interface to describe a structural piece of a document.
GlyphView
          A GlyphView is a styled chunk of text that represents a view mapped over an element in the text model.
LabelView
          A LabelView is a styled chunk of text that represents a view mapped over an element in the text model.
MutableAttributeSet
          A generic interface for a mutable collection of unique attributes.
ParagraphView
          View of a simple line-wrapping paragraph that supports multiple fonts, colors, components, icons, etc.
Position.Bias
          A typesafe enumeration to indicate bias to a position in the model.
Style
          A collection of attributes to associate with an element in a document.
StyleContext
          A pool of styles and their associated resources.
StyleContext.SmallAttributeSet
          This class holds a small number of attributes in an array.
StyledDocument
          Interface for a generic styled document.
StyledEditorKit
          This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.
StyledEditorKit.StyledTextAction
          An action that assumes it's being fired on a JEditorPane with a StyledEditorKit (or subclass) installed.
TabableView
          Interface for Views that have size dependent upon tabs.
TextAction
          An Action implementation useful for key bindings that are shared across a number of different text components.
View
           A very important part of the text package is the View class.
ViewFactory
          A factory to create a view of some portion of document subject.
 

Classes in javax.swing.text used by javax.swing.text.html.parser
ChangedCharSetException
          ChangedCharSetException as the name indicates is an exception thrown when the charset is changed.
SimpleAttributeSet
          A straightforward implementation of MutableAttributeSet using a hash table.
 

Classes in javax.swing.text used by javax.swing.text.rtf
BadLocationException
          This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).
DefaultEditorKit
          This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.
Document
           The Document is a container for text that serves as the model for swing text components.
EditorKit
          Establishes the set of things needed by a text component to be a reasonably functioning editor for some type of text content.
StyledEditorKit
          This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.
 

Classes in javax.swing.text used by javax.swing.tree
JTextComponent
          JTextComponent is the base class for swing text components.
 


Java™ Platform
Standard Ed. 6

Submit a bug or feature
For further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2011, Oracle and/or its affiliates. All rights reserved.

Scripting on this page tracks web page traffic, but does not change the content in any way.