public abstract class KeyAdapter extends Object implements KeyListener
KeyListener
interface.
Classes that wish to deal with KeyEvent
s can
extend this class and override only the methods which they are
interested in.
KeyListener
,
KeyEvent
,
Sample code and further informationConstructor 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 KeyListener
e
- an event containing information about the key presspublic void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
e
- an event containing information about the key release
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.