This interface defines the methods that an object must implement to "listen" for key events on AWT components. When a KeyEvent occurs, an AWT component notifies its registered KeyListener objects by invoking one of their methods.
An easy way to implement this interface is by subclassing the KeyAdapter class.
public abstract interface KeyListener extends EventListener { // Public Instance Methods public abstract void keyPressed(KeyEvent e); public abstract void keyReleased(KeyEvent e); public abstract void keyTyped(KeyEvent e); }
AWTEventMulticaster, KeyAdapter
AWTEventMulticaster.add(), AWTEventMulticaster.remove(), Component.addKeyListener(), Component.removeKeyListener()
AWTEventMulticaster.add(), AWTEventMulticaster.remove()