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

Print this page
rev 10121 : 8046485: Add missing @since tag under javax.swing.*
Reviewed-by:


  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 
  60     /**
  61      * The dispose-window default window close operation.
  62      * <p>
  63      * <b>Note</b>: When the last displayable window
  64      * within the Java virtual machine (VM) is disposed of, the VM may
  65      * terminate.  See <a href="../../java/awt/doc-files/AWTThreadIssues.html">
  66      * AWT Threading Issues</a> for more information.


  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  * @since 1.2
  48  */
  49 public interface WindowConstants
  50 {
  51     /**
  52      * The do-nothing default window close operation.
  53      */
  54     public static final int DO_NOTHING_ON_CLOSE = 0;
  55 
  56     /**
  57      * The hide-window default window close operation
  58      */
  59     public static final int HIDE_ON_CLOSE = 1;
  60 
  61     /**
  62      * The dispose-window default window close operation.
  63      * <p>
  64      * <b>Note</b>: When the last displayable window
  65      * within the Java virtual machine (VM) is disposed of, the VM may
  66      * terminate.  See <a href="../../java/awt/doc-files/AWTThreadIssues.html">
  67      * AWT Threading Issues</a> for more information.