Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying HTML in a JTextPane

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to display HTML, try use JEditorPane. This component displays HTML well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic