+ if (Platform.isJS()) // BH 2019
+ {
+ authlist = new JLabel(
+ "<html><br/><br/><img src=\"swingjs/j2s/images/Jalview_Logo.png\"/><br/>"
+ + newtext);
+ ((JLabel) authlist).setOpaque(true);
+ ((JLabel) authlist).setBackground(Color.white);
+ }
+ else
+ /**
+ * Java only
+ *
+ * @j2sIgnore
+ */
+ {
+ authlist = new JTextPane();
+ ((JTextPane) authlist).setEditable(false);
+ ((JTextPane) authlist).setContentType("text/html");
+ ((JTextPane) authlist).setText(newtext);
+ ((JTextPane) authlist).addHyperlinkListener(this);
+ }