KeyAdapter

Name

KeyAdapter

[Graphic: Figure from the text]

Description

The KeyAdapter class implements the methods of KeyListener with empty functions. It may be easier for you to extend KeyAdapter, overriding only those methods you are interested in, than to implement KeyListener and provide the empty functions yourself.

Class Definition

public abstract class java.awt.event.KeyAdapter extends java.lang.Object implements java.awt.event.KeyListener {
 // Instance Methods public void keyPressed (KeyEvent e);
public void keyReleased (KeyEvent e);
public void keyTyped (KeyEvent e);
}

Instance Methods

keyPressed

public void keyPressed (KeyEvent e)

keyReleased

public void keyReleased (KeyEvent e)

keyTyped

public void keyTyped (KeyEvent e)

See Also

KeyEvent, KeyListener