JTextPane helpPane = new JTextPane();
helpPane.setContentType("text/html");
helpPane.setEditable(false);
helpPane.setPreferredSize(Size.dialog_panel_help);
try {
HTMLEditorKit editorKit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument) editorKit.createDefaultDocument();
editorKit.read(new StringReader(helpDoc), doc, 0);
helpPane.setDocument(doc);
} catch (Exception e) {
e.printStackTrace();
} finally {
JOptionPane.showMessageDialog(null, new JScrollPane(helpPane, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED),