java.awt.event

Class KeyAdapter

public abstract class KeyAdapter extends Object implements KeyListener

This class implements 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.

Since: 1.1

See Also: KeyEvent KeyListener

UNKNOWN: updated to 1.4

Constructor Summary
KeyAdapter()
Do nothing default constructor for subclasses.
Method Summary
voidkeyPressed(KeyEvent event)
Implements this method in the interface with an empty body.
voidkeyReleased(KeyEvent event)
Implements this method in the interface with an empty body.
voidkeyTyped(KeyEvent event)
Implements this method in the interface with an empty body.

Constructor Detail

KeyAdapter

public KeyAdapter()
Do nothing default constructor for subclasses.

Method Detail

keyPressed

public void keyPressed(KeyEvent event)
Implements this method in the interface with an empty body.

Parameters: event the event, ignored in this implementation

keyReleased

public void keyReleased(KeyEvent event)
Implements this method in the interface with an empty body.

Parameters: event the event, ignored in this implementation

keyTyped

public void keyTyped(KeyEvent event)
Implements this method in the interface with an empty body.

Parameters: event the event, ignored in this implementation