1

What are some situations that you would use XHTMLRenderer (flying saucer) over JTextPane with a HTMLDocument and vice versa? Is it mostly a matter of preference or are there certain cases that one is a more natural choice?

brian_d
  • 11,190
  • 5
  • 47
  • 72

1 Answers1

1

An HTMLDocument is part of the standard Java library, but it is limited to HTML 3.2. In contrast, Flying Saucer is an external dependency, but it includes "Strong support for the CSS 2.1 specification."

trashgod
  • 203,806
  • 29
  • 246
  • 1,045