editorPane = new JEditorPane();
editorPane.setCaretPosition(0);
editorPane.setContentType("text/html");
editorPane.setEditable(false);
editorPane.setBackground(Color.white);
editorPane.addHyperlinkListener(new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
if (!Util.openBrowser(e.getURL().toString())) {
emitError(ResultPanel.this.parent.langpack.getString("error.can.not.open.browser.title"),
ResultPanel.this.parent.langpack.getString("error.can.not.open.browser.message"));