public JEditorPane(String mimeType, String text)
First argument is MIME type
Second argument is actual HTML as a String
String
JEditorPane jep = new JEditorPane("text/html", "<html><h1>Hello World!</h1> <h2>Goodbye World!</h2></html>");