wood burning stoves 2.0*
The moose likes Java in General and the fly likes Displaying HTML in a JTextPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Displaying HTML in a JTextPane" Watch "Displaying HTML in a JTextPane" New topic

Displaying HTML in a JTextPane

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
Are there known HTML tags that will not display properly in a JTextPane? If so are there other classes that would be better to use?

Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
If you want to display HTML, try use JEditorPane. This component displays HTML well.
subject: Displaying HTML in a JTextPane
Similar Threads
how to append a part of text of one JTextPane to another JTextPane.
PDF JEditorPane
Change color of a particular text in JTextPane.
css in JTextPane using swing1.1
how to add image to Jtextarea