javax.swing.text.html
and javax.swing.text.html.parser
packages include classes that do most of the hard work for you.
They're primarily intended for the internal use of HotJava and the JEditorPane
class. Consequently they can be a little tricky to get at.