Set up a special menu bar to be used when no windows are open.
Add this to your first frame.
Set its size to zero.
Set its location to negative coordinates.
Display the frame.
PlayerFrame(boolean invisible) {
super("");
this.setUndecorated(true);
this.setSize(0, 0);
CONTROL_BAR_HEIGHT = 0;
JMenuBar menubar = new PlayerMenuBar(null);
this.setJMenuBar(menubar);
this.pack();
}
Be careful if you have any bring to Front/Send to Back/Move Forward/Move backward functionality