java.awt.event.KeyAdapter (JDK 1.1)
This class is a trivial implementation of KeyListener; it provides empty bodies for each of the methods of that interface. When you are not interested in all of these methods, it is often easier to subclass KeyAdapter than it is to implement KeyListener from scratch.
public abstract classKeyAdapterextends Object implements KeyListener { //Default Constructor: public KeyAdapter()//Public Instance Methodspublic voidkeyPressed(KeyEvente); //From KeyListenerpublic voidkeyReleased(KeyEvente); //From KeyListenerpublic voidkeyTyped(KeyEvente); //From KeyListener}
Hierarchy:
Object->KeyAdapter(KeyListener(EventListener))