public abstract class KeyAdapter extends Object implements KeyListener
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| Constructor and Description |
|---|
KeyAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
keyPressed(KeyEvent e)
Sent when a key is pressed on the system keyboard.
|
void |
keyReleased(KeyEvent e)
Sent when a key is released on the system keyboard.
|
public void keyPressed(KeyEvent e)
keyPressed in interface KeyListenere - an event containing information about the key presspublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenere - an event containing information about the key releaseGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.