public class KeyPressedEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
private KeyEvent |
keyEvent |
private static long |
serialVersionUID |
source| Constructor and Description |
|---|
KeyPressedEvent(Object source,
KeyEvent keyEvent)
Constructs a new
KeyPressedEvent. |
| Modifier and Type | Method and Description |
|---|---|
KeyEvent |
getKeyEvent()
Returns the original Swing key event.
|
getSource, toStringprivate static final long serialVersionUID
public KeyPressedEvent(Object source, KeyEvent keyEvent)
KeyPressedEvent.source - object on which the Event initially occurredkeyEvent - the original Swing key eventpublic final KeyEvent getKeyEvent()