| Package | Description | 
|---|---|
| javax.swing.text | Provides classes and interfaces that deal with editable
and noneditable text components. | 
| javax.swing.text.html | Provides the class  HTMLEditorKitand supporting classes
for creating HTML text editors. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractDocument.BranchElementImplements a composite element that contains other elements. | 
| class  | AbstractDocument.LeafElementImplements an element that directly represents content of
 some kind. | 
| protected class  | DefaultStyledDocument.SectionElementDefault root element for a document... | 
| Modifier and Type | Method and Description | 
|---|---|
| protected AbstractDocument.AbstractElement | DefaultStyledDocument. createDefaultRoot()Creates the root element to be used to represent the
 default document structure. | 
| protected AbstractDocument.AbstractElement | PlainDocument. createDefaultRoot()Creates the root element to be used to represent the
 default document structure. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | HTMLDocument.BlockElementAn element that represents a structural block of
 HTML. | 
| class  | HTMLDocument.RunElementAn element that represents a chunk of text that has
 a set of HTML character level attributes assigned to
 it. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected AbstractDocument.AbstractElement | HTMLDocument. createDefaultRoot()Creates the root element to be used to represent the
 default document structure. | 
 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, 2015, Oracle and/or its affiliates.  All rights reserved.