Chapter 4. JEDITORPANE AND THE SWING HTML PACKAGE
Topics in this Chapter
Displaying and Saving HTML, RTF, and Plain Text
Asynchronous Page Loading
Converting Between Different Document Formats
The HTML Document Model
Loading and Parsing HTML
Handling Hypertext Links
Style Sheets and Views
Dynamically Changing HTML in a
JEditorPane
In Chapter 2, you saw how to use the JTextPane
control to display text with multiple fonts and colors and how to embed images and other active content into it. To use JTextPane
in this way, you need to do quite a lot of programming, manually setting up both the text and the corresponding attributes. Although this might be acceptable in some applications, perhaps because the text to be displayed is fixed at compile time or the ...
Get Core SWING advanced programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.