KeyListener

Classes which implement this interface provide methods that deal with the events that are generated as keys are pressed on the system keyboard. <p> After creating an instance of a class that : this interface it can be added to a control using the <code>addKeyListener</code> method and removed using the <code>removeKeyListener</code> method. When a key is pressed or released, the appropriate method will be invoked. </p>

@see KeyAdapter @see KeyEvent

Members

Functions

keyPressed
void keyPressed(KeyEvent e)

Sent when a key is pressed on the system keyboard.

keyReleased
void keyReleased(KeyEvent e)

Sent when a key is released on the system keyboard.

Meta