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.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 | Method and Description |
---|---|
StyledDocument |
JTextPane.getStyledDocument()
Fetches the model associated with the editor.
|
Modifier and Type | Method and Description |
---|---|
void |
JTextPane.setStyledDocument(StyledDocument doc)
Associates the editor with a text document.
|
Constructor and Description |
---|
JTextPane(StyledDocument doc)
Creates a new
JTextPane , with a specified document model. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultStyledDocument
A document that can be marked up with character and paragraph
styles in a manner similar to the Rich Text Format.
|
Modifier and Type | Method and Description |
---|---|
protected StyledDocument |
StyledEditorKit.StyledTextAction.getStyledDocument(JEditorPane e)
Gets the document associated with an editor pane.
|
Modifier and Type | Class and Description |
---|---|
class |
HTMLDocument
A document that models HTML.
|
Constructor and Description |
---|
MinimalHTMLWriter(Writer w,
StyledDocument doc)
Creates a new MinimalHTMLWriter.
|
MinimalHTMLWriter(Writer w,
StyledDocument doc,
int pos,
int len)
Creates a new MinimalHTMLWriter.
|
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, 2024, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.