1. /*
  2. * @(#)WindowConstants.java 1.13 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing;
  11. /**
  12. * Constants used to control the window-closing operation.
  13. * The <code>setDefaultCloseOperation</code> and
  14. * <code>getDefaultCloseOperation</code> methods
  15. * provided by <code>JFrame</code>,
  16. * <code>JInternalFrame</code>, and
  17. * <code>JDialog</code>
  18. * use these constants.
  19. * For examples of setting the default window-closing operation, see
  20. * <a
  21. href="http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html#windowevents">Responding to Window-Closing Events</a>,
  22. * a section in <em>The Java Tutorial</em>.
  23. *
  24. *
  25. * @version 1.13 02/02/00
  26. * @author Amy Fowler
  27. */
  28. public interface WindowConstants
  29. {
  30. /**
  31. * The do-nothing default window close operation
  32. */
  33. public static final int DO_NOTHING_ON_CLOSE = 0;
  34. /**
  35. * The hide-window default window close operation
  36. */
  37. public static final int HIDE_ON_CLOSE = 1;
  38. /**
  39. * The dispose-window default window close operation
  40. */
  41. public static final int DISPOSE_ON_CLOSE = 2;
  42. }