javax.swing.text

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » swing » javax.swing.text 
javax.swing.text
Provides classes and interfaces that deal with editable and noneditable 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.

Note: Most of the Swing API is not thread safe. For details, see Threads and Swing, a section in The Java Tutorial.

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see: @since 1.2 @serial exclude
Java Source File NameTypeComment
AbstractDocument.javaClass An implementation of the document interface to serve as a basis for implementing various kinds of documents.
AbstractWriter.javaClass AbstractWriter is an abstract class that actually does the work of writing out the element tree including the attributes.
AsyncBoxView.javaClass A box that does layout asynchronously.
AttributeSet.javaInterface A collection of unique attributes.
BadLocationException.javaClass This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).

Warning: Serialized objects of this class will not be compatible with future Swing releases.

BoxView.javaClass A view that arranges its children into a box shape by tiling its children along an axis.
Caret.javaInterface A place within a document view that represents where things can be inserted into the document model.
ChangedCharSetException.javaClass ChangedCharSetException as the name indicates is an exception thrown when the charset is changed.
ComponentView.javaClass Component decorator that implements the view interface.
CompositeView.javaClass CompositeView is an abstract View implementation which manages one or more child views. (Note that CompositeView is intended for managing relatively small numbers of child views.) CompositeView is intended to be used as a starting point for View implementations, such as BoxView, that will contain child Views.
DateFormatter.javaClass DateFormatter is an InternationalFormatter that does its formatting by way of an instance of java.text.DateFormat.

Warning: Serialized objects of this class will not be compatible with future Swing releases.

DefaultCaret.javaClass A default implementation of Caret.
DefaultEditorKit.javaClass This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.
DefaultFormatter.javaClass DefaultFormatter formats aribtrary objects.
DefaultFormatterFactory.javaClass An implementation of JFormattedTextField.AbstractFormatterFactory. DefaultFormatterFactory allows specifying a number of different JFormattedTextField.AbstractFormatters that are to be used. The most important one is the default one (setDefaultFormatter).
DefaultHighlighter.javaClass Implements the Highlighter interfaces.
DefaultStyledDocument.javaClass A document that can be marked up with character and paragraph styles in a manner similar to the Rich Text Format.
DefaultTextUI.javaClass

This class has been deprecated and should no longer be used.

Document.javaInterface

The Document is a container for text that serves as the model for swing text components.

DocumentFilter.javaClass DocumentFilter, as the name implies, is a filter for the Document mutation methods.
EditorKit.javaClass Establishes the set of things needed by a text component to be a reasonably functioning editor for some type of text content.
Element.javaInterface Interface to describe a structural piece of a document.
ElementIterator.javaClass

ElementIterator, as the name suggests, iteratates over the Element tree.

FieldView.javaClass Extends the multi-line plain text view to be suitable for a single-line editor view.
FlowView.javaClass A View that tries to flow it's children into some partially constrained space.
GapContent.javaClass An implementation of the AbstractDocument.Content interface implemented using a gapped buffer similar to that used by emacs. The underlying storage is a array of unicode characters with a gap somewhere.
GapVector.javaClass An implementation of a gapped buffer similar to that used by emacs.
GlyphPainter1.javaClass A class to perform rendering of the glyphs. This can be implemented to be stateless, or to hold some information as a cache to facilitate faster rendering and model/view translation.
GlyphPainter2.javaClass A class to perform rendering of the glyphs. This can be implemented to be stateless, or to hold some information as a cache to facilitate faster rendering and model/view translation.
GlyphView.javaClass A GlyphView is a styled chunk of text that represents a view mapped over an element in the text model.
Highlighter.javaInterface An interface for an object that allows one to mark up the background with colored areas.
IconView.javaClass Icon decorator that implements the view interface.
InternationalFormatter.javaClass InternationalFormatter extends DefaultFormatter, using an instance of java.text.Format to handle the conversion to a String, and the conversion from a String.

If getAllowsInvalid() is false, this will ask the Format to format the current text on every edit.

You can specify a minimum and maximum value by way of the setMinimum and setMaximum methods.

JTextComponent.javaClass JTextComponent is the base class for swing text components.
Keymap.javaInterface A collection of bindings of KeyStrokes to actions.
LabelView.javaClass A LabelView is a styled chunk of text that represents a view mapped over an element in the text model.
LayeredHighlighter.javaClass
LayoutQueue.javaClass A queue of text layout tasks.
MaskFormatter.javaClass MaskFormatter is used to format and edit strings.
MutableAttributeSet.javaInterface A generic interface for a mutable collection of unique attributes.
NavigationFilter.javaClass NavigationFilter can be used to restrict where the cursor can be positioned.
NumberFormatter.javaClass NumberFormatter subclasses InternationalFormatter adding special behavior for numbers.
ParagraphView.javaClass View of a simple line-wrapping paragraph that supports multiple fonts, colors, components, icons, etc.
PasswordView.javaClass Implements a View suitable for use in JPasswordField UI implementations.
PlainDocument.javaClass A plain document that maintains no character attributes.
PlainView.javaClass Implements View interface for a simple multi-line text view that has text in one font and color.
Position.javaInterface Represents a location within a document.
Segment.javaClass A segment of a character array representing a fragment of text.
SegmentCache.javaClass SegmentCache caches Segments to avoid continually creating and destroying of Segments.
SimpleAttributeSet.javaClass A straightforward implementation of MutableAttributeSet using a hash table.

Warning: Serialized objects of this class will not be compatible with future Swing releases.

StateInvariantError.javaClass This exception is to report the failure of state invarient assertion that was made.
StringContent.javaClass An implementation of the AbstractDocument.Content interface that is a brute force implementation that is useful for relatively small documents and/or debugging.
Style.javaInterface A collection of attributes to associate with an element in a document. Since these are typically used to associate character and paragraph styles with the element, operations for this are provided.
StyleConstants.javaClass

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.javaClass A pool of styles and their associated resources.
StyledDocument.javaInterface Interface for a generic styled document.
StyledEditorKit.javaClass This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.
TabableView.javaInterface Interface for Views that have size dependent upon tabs.
TabExpander.javaInterface Simple interface to allow for different types of implementations of tab expansion.
TableView.javaClass

Implements View interface for a table, that is composed of an element structure where the child elements of the element this view is responsible for represent rows and the child elements of the row elements are cells.

TabSet.javaClass A TabSet is comprised of many TabStops.
TabStop.javaClass This class encapsulates a single tab stop (basically as tab stops are thought of by RTF).
TextAction.javaClass An Action implementation useful for key bindings that are shared across a number of different text components.
TextLayoutStrategy.javaClass A flow strategy that uses java.awt.font.LineBreakMeasureer to produce java.awt.font.TextLayout for i18n capable rendering.
Utilities.javaClass A collection of methods to deal with various text related activities.
View.javaClass

A very important part of the text package is the View class. As the name suggests it represents a view of the text model, or a piece of the text model.

ViewFactory.javaInterface A factory to create a view of some portion of document subject. This is intended to enable customization of how views get mapped over a document model.
WrappedPlainView.javaClass View of plain text (text with only one font and color) that does line-wrapping.
ZoneView.javaClass ZoneView is a View implementation that creates zones for which the child views are not created or stored until they are needed for display or model/view translations.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.