/** Singleton Desktop instance */
public static Desktop instance;
+ /**
+ * BH TEMPORARY ONLY -- should use ApplicationSingleton
+ *
+ * @return
+ */
+ public static Desktop getInstance()
+ {
+ return instance;
+ }
+
public static MyDesktopPane desktop;
public static MyDesktopPane getDesktop()
frame.setMaximizable(resizable);
frame.setIconifiable(resizable);
frame.setOpaque(Platform.isJS());
-
- if (frame.getX() < 1 && frame.getY() < 1)
+ boolean isEmbedded = (Platform.getDimIfEmbedded(frame, -1, -1) != null);
+ if (!isEmbedded && frame.getX() < 1 && frame.getY() < 1)
{
frame.setLocation(xOffset * openFrameCount,
yOffset * ((openFrameCount - 1) % 10) + yOffset);
}
return result;
}
+
}