- // BH 2018 could use currentThread() here as a reference to a
- // Hashtable<Thread, MyDesktopPane> in JavaScript
- return desktop;
+ @SuppressWarnings("unused")
+ ThreadGroup g = Thread.currentThread().getThreadGroup();
+ /**
+ * @j2s g._jalviewDesktopInstance = d;
+ */
+ {
+ instance = d;
+ }
+ }
+
+ private MyDesktopPane desktopPane;
+
+ public static MyDesktopPane getDesktopPane()
+ {
+ return getInstance().desktopPane;
+ }
+
+ private void setDesktopPane(MyDesktopPane pane)
+ {
+ getInstance().desktopPane = pane;