JTextPane (JTextPane messageComponent, @DialogMessage String message) { JTextPane pane = configureMessagePaneUi(messageComponent, message, null); if (UIUtil.HTML_MIME.equals(pane.getContentType())) { pane.addHyperlinkListener(BrowserHyperlinkListener.INSTANCE); } return pane; }