|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå | »ó¼¼: Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå |
public interface WindowConstants
À©µµ¿ìÀÇ Å¬·Î¿ìÁî Á¶ÀÛÀ» Á¦¾îÇÏ´Â Á¤¼öÀÔ´Ï´Ù. JFrame
, JInternalFrame
¹× JDialog
setDefaultCloseOperation
¸Þ¼µå¿Í getDefaultCloseOperation
¸Þ¼µå°¡ ÀÌ·¯ÇÑ Á¤¼ö¸¦ »ç¿ëÇÕ´Ï´Ù. µðÆúÆ®ÀÇ À©µµ¿ì Ŭ·Î¿ìÁî Á¶ÀÛ¿¡ ´ëÇØ¼´Â ¡¸The Java Tutorial¡¹ÀÇ ¡¸Responding to Window-Closing Events¡¹¸¦ ÂüÁ¶ÇϽʽÿÀ.
JFrame.setDefaultCloseOperation(int)
,
JDialog.setDefaultCloseOperation(int)
,
JInternalFrame.setDefaultCloseOperation(int)
ÇÊµå °³¿ä | |
---|---|
static int |
DISPOSE_ON_CLOSE
À©µµ¿ì¸¦ ÆÄ±âÇÏ´Â µðÆúÆ®ÀÇ À©µµ¿ì Ŭ·Î¿ìÁî Á¶ÀÛÀÔ´Ï´Ù. |
static int |
DO_NOTHING_ON_CLOSE
¾Æ¹«°Íµµ ½Ç½ÃÇÏÁö ¾Ê´Â µðÆúÆ®ÀÇ À©µµ¿ì Ŭ·Î¿ìÁî Á¶ÀÛÀÔ´Ï´Ù. |
static int |
EXIT_ON_CLOSE
Á¾·áÇÏ´Â ¾îÇø®ÄÉÀ̼ÇÀÇ µðÆúÆ®ÀÇ À©µµ¿ì Ŭ·Î¿ìÁî Á¶ÀÛÀÔ´Ï´Ù. |
static int |
HIDE_ON_CLOSE
À©µµ¿ì¸¦ ¼û±â´Â µðÆúÆ®ÀÇ À©µµ¿ì Ŭ·Î¿ìÁî Á¶ÀÛÀÔ´Ï´Ù. |
ÇʵåÀÇ »ó¼¼ |
---|
static final int DO_NOTHING_ON_CLOSE
static final int HIDE_ON_CLOSE
static final int DISPOSE_ON_CLOSE
ÁÖ: Java °¡»ó ¸Ó½Å (VM) ³»¿¡¼ ¸¶Áö¸· Ç¥½Ã °¡´ÉÇÑ À©µµ¿ì°¡ ÆÄ±âµÇ¸é, VM°¡ Á¾·áµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. »ó¼¼ÇÑ °Í¿¡ ´ëÇÏ¿©´Â ¡¸AWT Threading Issues¡¹¸¦ ÂüÁ¶ÇϽʽÿÀ.
Window.dispose()
,
JInternalFrame.dispose()
,
Á¤¼ö Çʵ尪 static final int EXIT_ON_CLOSE
JFrame
µî, ÀÌ Á¶ÀÛÀ» Áö¿ø
Çϰí ÀÖ´Â À©µµ¿ì·Î À̰ÍÀ» ¼³Á¤ÇÏ·Á°í Çϸé, SecurityManager
¿¡ ±Ù°ÅÇØ SecurityException
°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. ÀÌ Çʵå´Â ¾îÇø®ÄÉÀ̼dz»¿¡¼¸¸ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.
JFrame.setDefaultCloseOperation(int)
,
Á¤¼ö Çʵ尪
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå | »ó¼¼: Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.