I think I may know the answer to your JEditorPane problem.
To correctly display HTML are you sure you are setting JEditorPane.setContentType("text/html"); ?