|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.awt.event.KeyAdapter
public abstract class KeyAdapter
Űº¸µå À̺¥Æ®¸¦ ¹Þ´Â Ãß»ó ¾î´ðÅÍ Å¬·¡½ºÀÔ´Ï´Ù. ÀÌ Å¬·¡½ºÀÇ ¸Þ¼µå´Â ¸ðµÎ ºñ¾îÀÖ½À´Ï´Ù. ÀÌ Å¬·¡½º¿¡ÀÇÇØ ¸®½º³Ê °´Ã¼ÀÇ ÀÛ¼ºÀÌ ¿ëÀÌÇÏ°Ô µË´Ï´Ù.
KeyEvent
¸®½º³Ê¸¦ ÀÛ¼ºÇÏ·Á¸é,
ÀÌ Å¬·¡½º¸¦ È®ÀåÇØ °ü°è°¡ ÀÖ´Â À̺¥Æ®¿ëÀÇ ¸Þ¼µå¸¦ ¿À¹ö¶óÀ̵å(override) ÇÕ´Ï´Ù. KeyListener
ÀÎÅÍÆäÀ̽º¸¦ Á÷Á¢ ±¸ÇöÇÏ´Â °æ¿ì¿¡´Â ±× ÁßÀÇ ¸Þ¼µå¸¦ ¸ðµÎ Á¤ÀÇÇØ¾ß ÇÕ´Ï´Ù. ÀÌ Ãß»ó Ŭ·¡½º¿¡¼´Â ±¸ÇöÀÌ ÇÊ¿äÇÑ ¸ðµç ¸Þ¼µå¿¡ ´ëÇØ ºñ¾îÀÖ´Â Á¤Àǰ¡ µÇ¾î ÀÖÀ¸¹Ç·Î ÇÊ¿äÇÑ À̺¥Æ®¿ëÀÇ ¸Þ¼µå¸¦ Á¤ÀÇÇÏ´Â °Í¸¸À¸·Î ³¡³³´Ï´Ù.
È®ÀåÇÑ Å¬·¡½º¸¦ »ç¿ëÇØ ¸®½º³Ê °´Ã¼¸¦ ÀÛ¼º ÈÄ, ÄÄÆÛ³ÍÆ®ÀÇ addKeyListener
¸Þ¼µå¸¦ »ç¿ëÇØ ¸®½º³Ê °´Ã¼¸¦ ÄÄÆÛ³ÍÆ®¿¡ µî·ÏÇÕ´Ï´Ù. ۸¦ ´©¸£°Å³ª ¶¼¾î ³õ°Å³ª ŸÀÌÇÁ Ä¡¸é, ¸®½º³Ê °´Ã¼ÀÇ °ü·ÃµÈ ¸Þ¼µå°¡ ºÒ·Á°¡
KeyEvent
ÀÌ ±× ¸Þ¼µå¿¡°Ô °Ç³×Áý´Ï´Ù.
KeyEvent
,
KeyListener
,
Tutorial: Writing a Key Listener,
Reference: The Java Class Libraries (update file) »ý¼ºÀÚ °³¿ä | |
---|---|
KeyAdapter ()
|
¸Þ¼µå °³¿ä | |
---|---|
void |
keyPressed (KeyEvent e)
۸¦ ´©¸£°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù. |
void |
keyReleased (KeyEvent e)
۸¦ ¶¼¾î ³õ¾ÒÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù. |
void |
keyTyped (KeyEvent e)
۸¦ ´·¶À» ¶§¿¡ È£ÃâÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public KeyAdapter()
¸Þ¼µåÀÇ »ó¼¼ |
---|
public void keyTyped(KeyEvent e)
KeyListener
³»ÀÇ keyTyped
public void keyPressed(KeyEvent e)
KeyListener
³»ÀÇ keyPressed
public void keyReleased(KeyEvent e)
KeyListener
³»ÀÇ keyReleased
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.