KeyListener interface.
Classes that wish to deal with KeyEvents can
extend this class and override only the methods which they are
interested in.
KeyListener, KeyEvent, Sample code and further information
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | keyPressed(KeyEvent
an event containing information about the key press e)Implements org. |
| public void | keyReleased(KeyEvent
an event containing information about the key release e)Implements org. |
| KeyAdapter | back to summary |
|---|---|
| public KeyAdapter() | |
| keyPressed | back to summary |
|---|---|
| public void keyPressed(KeyEvent e) Implements org. Sent when a key is pressed on the system keyboard. The default behavior is to do nothing. | |
| keyReleased | back to summary |
|---|---|
| public void keyReleased(KeyEvent e) Implements org. Sent when a key is released on the system keyboard. The default behavior is to do nothing. | |