1. /*
  2. * @(#)WindowConstants.java 1.9 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing;
  8. /**
  9. * Constants used to control the window-closing operation.
  10. * For example, see {@link JFrame#setDefaultCloseOperation}
  11. *
  12. * @version 1.9 11/29/01
  13. * @author Amy Fowler
  14. */
  15. public interface WindowConstants
  16. {
  17. /**
  18. * The do-nothing default window close operation
  19. */
  20. public static final int DO_NOTHING_ON_CLOSE = 0;
  21. /**
  22. * The hide-window default window close operation
  23. */
  24. public static final int HIDE_ON_CLOSE = 1;
  25. /**
  26. * The dispose-window default window close operation
  27. */
  28. public static final int DISPOSE_ON_CLOSE = 2;
  29. /**
  30. * The exit application default window close operation. If a window
  31. * has this set as the close operation and is closed in an applet,
  32. * a SecurityException may be thrown. It is recommended you only use
  33. * this in an Application. <p>
  34. * When new API is allowed this will be added.
  35. */
  36. // static final int EXIT_ON_CLOSE = 3;
  37. }