JComponent (@Nls String text) { JTextPane pane = new JTextPane(); pane.setOpaque(false); pane.setEditable(false); pane.setContentType("text/plain"); pane.setText(text); //Messages.installHyperlinkSupport(pane); return pane; }