< prev index next >

src/java.desktop/share/classes/java/awt/desktop/QuitStrategy.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 24,45 **** */ package java.awt.desktop; /** ! * The strategy used to shut down the application, if Sudden Termination is not enabled. * ! * @see java.awt.Desktop#setQuitHandler(java.awt.desktop.QuitHandler) ! * @see java.awt.Desktop#setQuitStrategy(java.awt.desktop.QuitStrategy) * @see java.awt.Desktop#enableSuddenTermination() * @see java.awt.Desktop#disableSuddenTermination() - * * @since 9 */ public enum QuitStrategy { /** ! * Shuts down the application by calling {@code System.exit(0)}. This is the default strategy. */ NORMAL_EXIT, /** * Shuts down the application by closing each window from back-to-front. --- 24,46 ---- */ package java.awt.desktop; /** ! * The strategy used to shut down the application, if Sudden Termination is not ! * enabled. * ! * @see java.awt.Desktop#setQuitHandler(QuitHandler) ! * @see java.awt.Desktop#setQuitStrategy(QuitStrategy) * @see java.awt.Desktop#enableSuddenTermination() * @see java.awt.Desktop#disableSuddenTermination() * @since 9 */ public enum QuitStrategy { /** ! * Shuts down the application by calling {@code System.exit(0)}. This is the ! * default strategy. */ NORMAL_EXIT, /** * Shuts down the application by closing each window from back-to-front.
< prev index next >