- getInstance().addFrame(frame, title, Desktop.FRAME_MAKE_VISIBLE, w, h,
+
+ setFrame(frame, title, w, h);
+
+ // Headless operation has no Desktop instance, only the static class.
+
+ if (getInstance() != null)
+ getInstance().addFrame(frame, Desktop.FRAME_MAKE_VISIBLE,