|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
public interface WindowListener
À©µµ¿ì À̺¥Æ®¸¦ ¹Þ±â À§ÇÑ ¸®½º³Ê ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù. À©µµ¿ì À̺¥Æ®ÀÇ Ã³¸®¿¡ °ü·ÃµÈ Ŭ·¡½º´Â ÀÌ ÀÎÅÍÆäÀ̽º ¹× Æ÷ÇԵǴ ¸ðµç ¸Þ¼µå¸¦ ±¸ÇöÇÏ´ÂÁö, °ü·ÃµÈ ¸Þ¼µå¸¸À» ¿À¹ö¶óÀ̵å(override)ÀÇÇØ abstract Ŭ·¡½º WindowAdapter
¸¦ È®ÀåÇÕ´Ï´Ù. ±×·¯ÇÑ Å¬·¡½º·ÎºÎÅÍ ÀÛ¼ºµÈ ¸®½º³Ê °´Ã¼´Â addWindowListener
¸Þ¼µå¸¦ »ç¿ëÇØ À©µµ¿ì¿¡ µî·ÏµË´Ï´Ù. À©µµ¿ì°¡ ¿ÀÇÂ, Ŭ·Î¿ìÁî, ¾×ƼºêÈ, ºñ¾×ƼºêÈ,ÀڽľÆÀÌÄÜÈ, ºñ¾ÆÀÌÄÜÈ µÇ´Â °Í¿¡ ÀÇÇØ À©µµ¿ì »óÅ°¡ º¯ÈÇϸé, ¸®½º³Ê °´Ã¼ÀÇ °ü·ÃµÈ ¸Þ¼µå°¡ ºÒ·Á°¡
±× ¸Þ¼µå¿¡ WindowEvent
ÀÌ °Ç³×¹Þ½À´Ï´Ù.
WindowAdapter
,
WindowEvent
,
Tutorial: How to Write Window Listeners ¸Þ¼µå °³¿ä | |
---|---|
void |
windowActivated (WindowEvent e)
Window°¡ ¾×Ƽºê Window ·Î ¼³Á¤µÇ¸é È£ÃâÇÕ´Ï´Ù. |
void |
windowClosed (WindowEvent e)
À©µµ¿ì¿¡ ´ëÇÑ dispose È£ÃâÀÇ °á°ú·Î¼, À©µµ¿ì°¡ Ŭ·Î¿ìÁî µÇ¾úÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù. |
void |
windowClosing (WindowEvent e)
»ç¿ëÀÚ°¡ À©µµ¿ìÀÇ ½Ã½ºÅÛ ¸Þ´º·Î À©µµ¿ì¸¦ ´ÝÀ¸·Á°í ÇßÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù. |
void |
windowDeactivated (WindowEvent e)
Window°¡ ¾×Ƽºê Window°¡ ¾Æ´Ï°Ô µÇ¾úÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù. |
void |
windowDeiconified (WindowEvent e)
À©µµ¿ì°¡ ÃÖ¼ÒÈµÈ »óÅ·κÎÅÍ º¸Åë »óÅ·Πº¯°æµÇ¾úÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù. |
void |
windowIconified (WindowEvent e)
À©µµ¿ì°¡ º¸Åë »óÅ·κÎÅÍ ÃÖ¼ÒÈµÈ »óÅ·Πº¯°æµÇ¾úÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù. |
void |
windowOpened (WindowEvent e)
À©µµ¿ì°¡ ÃÖÃÊ·Î °¡½Ã°¡ µÇ¾úÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù. |
¸Þ¼µåÀÇ »ó¼¼ |
---|
void windowOpened(WindowEvent e)
void windowClosing(WindowEvent e)
void windowClosed(WindowEvent e)
void windowIconified(WindowEvent e)
Frame.setIconImage(java.awt.Image)
void windowDeiconified(WindowEvent e)
void windowActivated(WindowEvent e)
void windowDeactivated(WindowEvent e)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.