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?
What are some situations that you would use XHTMLRenderer (flying saucer) over JTextPane with
Share
An
HTMLDocumentis 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.”