This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Displaying HTML in a JTextPane" Watch "Displaying HTML in a JTextPane" New topic
Author

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?

Thanks,
Barry
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: http://aspose.com/file-tools
 
subject: Displaying HTML in a JTextPane