File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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