java.awt.desktop.QuitResponse Java Examples
The following examples show how to use
java.awt.desktop.QuitResponse.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: QuitCommand.java From gcs with Mozilla Public License 2.0 | 5 votes |
@Override public void handleQuitRequestWith(QuitEvent event, QuitResponse response) { if (!UIUtilities.inModalState()) { mAllowQuitIfNoSignificantWindowsOpen = false; if (closeFrames(true)) { if (closeFrames(false)) { saveState(); response.performQuit(); return; } } mAllowQuitIfNoSignificantWindowsOpen = true; } response.cancelQuit(); }
Example #2
Source File: NbApplicationAdapterJDK9.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void handleQuitRequestWith(QuitEvent e, QuitResponse response) { handleQuit(); //need to do this otherwise the user will never be able to quit again response.cancelQuit(); }
Example #3
Source File: DesktopHandler.java From pcgen with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void handleQuitRequestWith(final QuitEvent quitEvent, final QuitResponse quitResponse) { PCGenUIManager.closePCGen(); }
Example #4
Source File: DesktopHandler.java From pcgen with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void handleQuitRequestWith(final QuitEvent quitEvent, final QuitResponse quitResponse) { PCGenUIManager.closePCGen(); }