I've just discovered that Java applications under Lion also recognise alt-apple-Q, aka "Quit and Discard Windows" in addition to the old apple-Q. Do we as programmers have to do anything to handle this, or is it all handled automatically? Can we detect and handle it at all?
I have done the following in an application:
com.apple.eawt.Application appleApplication = com.apple.eawt.Application.getApplication();
appleApplication.disableSuddenTermination();
appleApplication.setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS);
This says - if I understand correctly - that the application should always close all windows on termination. Shouldn't one of apple-Q or alt-apple-Q be disabled in this case?
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden