O'Reilly logo

Core SWING advanced programming by KIM TOPLEY

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required