Set up a special menu bar to be used when no windows are open.
Add this to your first shell.
Set its size to zero.
Set its location to negative coordinates.
Display the shell.
public Shell openHiddenWindow(Display display) {
createShell(display);
createMenuBar();
shell.setSize(0, 0);
shell.setLocation(-100, -100);
shell.open();
return shell;
}
Be careful if you have any bring to Front/Send to Back/Move Forward/Move backward functionality