| Package | Description |
|---|---|
| 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.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.rtf |
Provides a class (
RTFEditorKit) for creating Rich-Text-Format text editors.
|
| Modifier and Type | Method and Description |
|---|---|
protected Document |
JTextArea.createDefaultModel()
Creates the default implementation of the model to be used at construction if one isn't explicitly given.
|
protected Document |
JTextField.createDefaultModel()
Creates the default implementation of the model to be used at construction if one isn't explicitly given.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTextPane.setDocument(Document
Associates the editor with a text document.
|
void |
JFormattedTextField.setDocument(Document
Associates the editor with a text document.
|
void |
JTextField.setDocument(Document
Associates the editor with a text document.
|
| Constructor and Description | |
|---|---|
JPasswordField(Document
Constructs a new
JPasswordField that uses the given text storage model and the given number of columns.
|
|
JTextArea(Document
Constructs a new JTextArea with the given document model, and defaults for all of the other arguments (null, 0, 0).
|
|
JTextArea(Document
Constructs a new JTextArea with the specified number of rows and columns, and the given model.
|
|
JTextField(Document
Constructs a new
JTextField that uses the given text storage model and the given number of columns.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
DocumentEvent.getDocument()
Gets the document that sourced the change event.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
StyledDocument
Interface for a generic styled document.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDocument
An implementation of the document interface to serve as a basis for implementing various kinds of documents.
|
class |
DefaultStyledDocument
A document that can be marked up with character and paragraph styles in a manner similar to the Rich Text Format.
|
class |
PlainDocument
A plain document that maintains no character attributes.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Document |
EditorKit.createDefaultDocument()
Creates an uninitialized text storage model that is appropriate for this type of editor.
|
Document |
DefaultEditorKit.createDefaultDocument()
Creates an uninitialized text storage model (PlainDocument) that is appropriate for this type of editor.
|
Document |
StyledEditorKit.createDefaultDocument()
Creates an uninitialized text storage model that is appropriate for this type of editor.
|
Document |
JTextComponent.getDocument()
Fetches the model associated with the editor.
|
abstract Document |
DocumentFilter.FilterBypass.getDocument()
Returns the Document the mutation is occurring on.
|
Document |
AbstractDocument.AbstractElement.getDocument()
Retrieves the underlying model.
|
Document |
AbstractDocument.DefaultDocumentEvent.getDocument()
Gets the document that sourced the change event.
|
Document |
Element.getDocument()
Fetches the document associated with this element.
|
Document |
View.getDocument()
Fetches the model associated with the view.
|
protected Document |
AbstractWriter.getDocument()
Fetches the document.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
EditorKit.read(InputStream
Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.
|
void |
DefaultEditorKit.read(InputStream
Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.
|
abstract void |
EditorKit.read(Reader
Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.
|
void |
DefaultEditorKit.read(Reader
Inserts content from the given stream, which will be treated as plain text.
|
void |
JTextComponent.setDocument(Document
Associates the editor with a text document.
|
abstract void |
EditorKit.write(OutputStream
Writes content from a document to the given stream in a format appropriate for this kind of content handler.
|
void |
DefaultEditorKit.write(OutputStream
Writes content from a document to the given stream in a format appropriate for this kind of content handler.
|
abstract void |
EditorKit.write(Writer
Writes content from a document to the given stream in a format appropriate for this kind of content handler.
|
void |
DefaultEditorKit.write(Writer
Writes content from a document to the given stream as plain text.
|
| Constructor and Description | |
|---|---|
AbstractWriter(Writer
Creates a new AbstractWriter.
|
|
AbstractWriter(Writer
Creates a new AbstractWriter.
|
|
ElementIterator(Document
Creates a new ElementIterator.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HTMLDocument
A document that models HTML.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
HTMLEditorKit.createDefaultDocument()
Create an uninitialized text storage model that is appropriate for this type of editor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HTMLEditorKit.read(Reader
Inserts content from the given stream.
|
void |
HTMLEditorKit.write(Writer
Write content from a document to the given stream in a format appropriate for this kind of content handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RTFEditorKit.read(InputStream
Insert content from the given stream which is expected to be in a format appropriate for this kind of content handler.
|
void |
RTFEditorKit.read(Reader
Insert content from the given stream, which will be treated as plain text.
|
void |
RTFEditorKit.write(OutputStream
Write content from a document to the given stream in a format appropriate for this kind of content handler.
|
void |
RTFEditorKit.write(Writer
Write content from a document to the given stream as plain text.
|