Print this page
Split |
Close |
Expand all |
Collapse all |
--- old/src/share/classes/javax/swing/WindowConstants.java
+++ new/src/share/classes/javax/swing/WindowConstants.java
1 1 /*
2 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 4 *
5 5 * This code is free software; you can redistribute it and/or modify it
6 6 * under the terms of the GNU General Public License version 2 only, as
7 7 * published by the Free Software Foundation. Oracle designates this
8 8 * particular file as subject to the "Classpath" exception as provided
9 9 * by Oracle in the LICENSE file that accompanied this code.
10 10 *
11 11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 14 * version 2 for more details (a copy is included in the LICENSE file that
15 15 * accompanied this code).
16 16 *
17 17 * You should have received a copy of the GNU General Public License version
18 18 * 2 along with this work; if not, write to the Free Software Foundation,
19 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 20 *
21 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 22 * or visit www.oracle.com if you need additional information or have any
23 23 * questions.
24 24 */
25 25
26 26 package javax.swing;
27 27
28 28
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
29 29 /**
30 30 * Constants used to control the window-closing operation.
31 31 * The <code>setDefaultCloseOperation</code> and
32 32 * <code>getDefaultCloseOperation</code> methods
33 33 * provided by <code>JFrame</code>,
34 34 * <code>JInternalFrame</code>, and
35 35 * <code>JDialog</code>
36 36 * use these constants.
37 37 * For examples of setting the default window-closing operation, see
38 38 * <a
39 - href="http://docs.oracle.com/javase/tutorial/uiswing/components/frame.html#windowevents">Responding to Window-Closing Events</a>,
39 + href="https://docs.oracle.com/javase/tutorial/uiswing/components/frame.html#windowevents">Responding to Window-Closing Events</a>,
40 40 * a section in <em>The Java Tutorial</em>.
41 41 * @see JFrame#setDefaultCloseOperation(int)
42 42 * @see JDialog#setDefaultCloseOperation(int)
43 43 * @see JInternalFrame#setDefaultCloseOperation(int)
44 44 *
45 45 *
46 46 * @author Amy Fowler
47 47 */
48 48 public interface WindowConstants
49 49 {
50 50 /**
51 51 * The do-nothing default window close operation.
52 52 */
53 53 public static final int DO_NOTHING_ON_CLOSE = 0;
54 54
55 55 /**
56 56 * The hide-window default window close operation
57 57 */
58 58 public static final int HIDE_ON_CLOSE = 1;
59 59
60 60 /**
61 61 * The dispose-window default window close operation.
62 62 * <p>
63 63 * <b>Note</b>: When the last displayable window
64 64 * within the Java virtual machine (VM) is disposed of, the VM may
65 65 * terminate. See <a href="../../java/awt/doc-files/AWTThreadIssues.html">
66 66 * AWT Threading Issues</a> for more information.
67 67 * @see java.awt.Window#dispose()
68 68 * @see JInternalFrame#dispose()
69 69 */
70 70 public static final int DISPOSE_ON_CLOSE = 2;
71 71
72 72 /**
73 73 * The exit application default window close operation. Attempting
74 74 * to set this on Windows that support this, such as
75 75 * <code>JFrame</code>, may throw a <code>SecurityException</code> based
76 76 * on the <code>SecurityManager</code>.
77 77 * It is recommended you only use this in an application.
78 78 *
79 79 * @since 1.4
80 80 * @see JFrame#setDefaultCloseOperation
81 81 */
82 82 public static final int EXIT_ON_CLOSE = 3;
83 83
84 84 }
↓ open down ↓ |
35 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX