public EditorPaneLinkVisitor(JXEditorPane pane) { if (pane == null) { pane = createDefaultEditorPane(); } this.editorPane = pane; pane.addHyperlinkListener(getHyperlinkListener()); }