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

Print this page




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.swing;
  27 
  28 
  29 /**
  30  * Constants used to control the window-closing operation.
  31  * The <code>setDefaultCloseOperation</code> and
  32  * <code>getDefaultCloseOperation</code> methods
  33  * provided by <code>JFrame</code>,
  34  * <code>JInternalFrame</code>, and
  35  * <code>JDialog</code>
  36  * use these constants.
  37  * For examples of setting the default window-closing operation, see
  38  * <a
  39  href="http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html#windowevents">Responding to Window-Closing Events</a>,
  40  * a section in <em>The Java Tutorial</em>.
  41  * @see JFrame#setDefaultCloseOperation(int)
  42  * @see JDialog#setDefaultCloseOperation(int)
  43  * @see JInternalFrame#setDefaultCloseOperation(int)
  44  *
  45  *
  46  * @author Amy Fowler
  47  */
  48 public interface WindowConstants
  49 {
  50     /**
  51      * The do-nothing default window close operation.
  52      */
  53     public static final int DO_NOTHING_ON_CLOSE = 0;
  54 
  55     /**
  56      * The hide-window default window close operation
  57      */
  58     public static final int HIDE_ON_CLOSE = 1;
  59 




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.swing;
  27 
  28 
  29 /**
  30  * Constants used to control the window-closing operation.
  31  * The <code>setDefaultCloseOperation</code> and
  32  * <code>getDefaultCloseOperation</code> methods
  33  * provided by <code>JFrame</code>,
  34  * <code>JInternalFrame</code>, and
  35  * <code>JDialog</code>
  36  * use these constants.
  37  * For examples of setting the default window-closing operation, see
  38  * <a
  39  href="http://docs.oracle.com/javase/tutorial/uiswing/components/frame.html#windowevents">Responding to Window-Closing Events</a>,
  40  * a section in <em>The Java Tutorial</em>.
  41  * @see JFrame#setDefaultCloseOperation(int)
  42  * @see JDialog#setDefaultCloseOperation(int)
  43  * @see JInternalFrame#setDefaultCloseOperation(int)
  44  *
  45  *
  46  * @author Amy Fowler
  47  */
  48 public interface WindowConstants
  49 {
  50     /**
  51      * The do-nothing default window close operation.
  52      */
  53     public static final int DO_NOTHING_ON_CLOSE = 0;
  54 
  55     /**
  56      * The hide-window default window close operation
  57      */
  58     public static final int HIDE_ON_CLOSE = 1;
  59