if (Desktop.desktop != null)
{
this.setDropTarget(new java.awt.dnd.DropTarget(this, this));
- /**
- * BH 2018 ignore service listeners
- *
- * @j2sNative
- *
- */
+ if (!Platform.isJS())
{
addServiceListeners();
}
((JPanel) pane).add(textLabel, BorderLayout.NORTH);
}
else
+ /**
+ * Java only
+ *
+ * @j2sNative
+ */
{
JEditorPane editPane = new JEditorPane("text/html", "");
editPane.setEditable(false);