Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
KeyAdapter
class
(overriding only the methods of interest).
The listener object created from that class is then registered with a
component using the component's addKeyListener
method. A keyboard event is generated when a key is pressed, released,
or typed (pressedn and released). The relevant method in the listener
object is then invoked, and the KeyEvent
is passed to it.
Method Summary | |
void | keyPressed(KeyEvent e)
|
void | keyReleased(KeyEvent e)
|
void | keyTyped(KeyEvent e)
|
Method Detail |
public void keyTyped(KeyEvent e)
public void keyPressed(KeyEvent e)
public void keyReleased(KeyEvent e)
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |