tags:

views:

36

answers:

1

On OS X if you close the last window, the application still is living and, if focused, shows a menu bar (without any window). What is the simplest SWT example code demonstrating this behavior? Thanks in advance.

A: 

Hm.. I don't know - does I understand question in correct way. I suppose that you need smt like this: There is some manager that works using two stays - normal and after closing all windows. If it in second state when it focused it must be create window with menu bar. And, of course do smt like this in "main function".

while (thereIsNoSignalToShutdown()) 
    if (!display.readAndDispatch())
        display.sleep();
    }
Stas