< prev index next >

src/java.desktop/share/classes/javax/swing/WindowConstants.java

Print this page

        

*** 26,40 **** package javax.swing; /** * Constants used to control the window-closing operation. ! * The <code>setDefaultCloseOperation</code> and ! * <code>getDefaultCloseOperation</code> methods ! * provided by <code>JFrame</code>, ! * <code>JInternalFrame</code>, and ! * <code>JDialog</code> * use these constants. * For examples of setting the default window-closing operation, see * <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/frame.html#windowevents">Responding to Window-Closing Events</a>, * a section in <em>The Java Tutorial</em>. --- 26,40 ---- package javax.swing; /** * Constants used to control the window-closing operation. ! * The {@code setDefaultCloseOperation} and ! * {@code getDefaultCloseOperation} methods ! * provided by {@code JFrame}, ! * {@code JInternalFrame}, and ! * {@code JDialog} * use these constants. * For examples of setting the default window-closing operation, see * <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/frame.html#windowevents">Responding to Window-Closing Events</a>, * a section in <em>The Java Tutorial</em>.
*** 71,82 **** public static final int DISPOSE_ON_CLOSE = 2; /** * The exit application default window close operation. Attempting * to set this on Windows that support this, such as ! * <code>JFrame</code>, may throw a <code>SecurityException</code> based ! * on the <code>SecurityManager</code>. * It is recommended you only use this in an application. * * @since 1.4 * @see JFrame#setDefaultCloseOperation */ --- 71,82 ---- public static final int DISPOSE_ON_CLOSE = 2; /** * The exit application default window close operation. Attempting * to set this on Windows that support this, such as ! * {@code JFrame}, may throw a {@code SecurityException} based ! * on the {@code SecurityManager}. * It is recommended you only use this in an application. * * @since 1.4 * @see JFrame#setDefaultCloseOperation */
< prev index next >