public abstract class KeyAdapter extends Object implements KeyListener
KeyListener and implements all methods
with empty bodies. This allows a listener interested in implementing only
a subset of the KeyListener interface to extend this class
and override only the desired methods.KeyEvent,
KeyListener| Constructor and Description |
|---|
KeyAdapter()
Do nothing default constructor for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
keyPressed(KeyEvent event)
Implements this method in the interface with an empty body.
|
void |
keyReleased(KeyEvent event)
Implements this method in the interface with an empty body.
|
void |
keyTyped(KeyEvent event)
Implements this method in the interface with an empty body.
|
public KeyAdapter()
public void keyTyped(KeyEvent event)
keyTyped in interface KeyListenerevent - the event, ignored in this implementationpublic void keyPressed(KeyEvent event)
keyPressed in interface KeyListenerevent - the event, ignored in this implementationpublic void keyReleased(KeyEvent event)
keyReleased in interface KeyListenerevent - the event, ignored in this implementation