File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: Displaying HTML in a JTextPane
It's not a secret anymore!