display HTML with JEditorPane
The class JEditorPane makes it possible to display HTML on a very simple way.
JEditorPane editor = new JEditorPane(); editor.setContentType("text/html"); editor.setEditable(false); editor.setText("<html><body><p>Hallo World!</p></body></html>");