Package | Description |
---|---|
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. |
Modifier and Type | Class | Description |
---|---|---|
class |
GapContent |
An implementation of the AbstractDocument.Content interface
implemented using a gapped buffer similar to that used by emacs.
|
class |
StringContent |
An implementation of the AbstractDocument.Content interface that is
a brute force implementation that is useful for relatively small
documents and/or debugging.
|
Modifier and Type | Method | Description |
---|---|---|
protected AbstractDocument.Content |
AbstractDocument.getContent() |
Gets the content for the document.
|
Constructor | Description |
---|---|
AbstractDocument(AbstractDocument.Content data) |
Constructs a new
AbstractDocument , wrapped around some
specified content storage mechanism. |
AbstractDocument(AbstractDocument.Content data,
AbstractDocument.AttributeContext context) |
Constructs a new
AbstractDocument , wrapped around some
specified content storage mechanism. |
DefaultStyledDocument(AbstractDocument.Content c,
StyleContext styles) |
Constructs a styled document.
|
PlainDocument(AbstractDocument.Content c) |
Constructs a plain text document.
|
Constructor | Description |
---|---|
HTMLDocument(AbstractDocument.Content c,
StyleSheet styles) |
Constructs an HTML document with the given content
storage implementation and the given style/attribute
storage mechanism.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b149-1