Fields
Constructors
Name | Description |
---|---|
KeyEvent(Component, int, long, int, int) | |
KeyEvent(Component, int, long, int, int, char) | Constructs a KeyEvent object with the specified source component, type, modifiers, and key. |
Methods
Name | Description |
---|---|
getKeyChar() | Returns the character associated with the key in this event. |
getKeyCode() | Returns the integer key-code associated with the key in this event. |
getKeyModifiersText(int) | Returns a String describing the modifier key(s), such as "Shift", or "Ctrl+Shift". |
getKeyText(int) | Returns a String describing the keyCode, such as "HOME", "F1" or "A". |
isActionKey() | Returns whether or not the key in this event is an "action" key, as defined in Event.java. |
paramString() | |
setKeyChar(char) | |
setKeyCode(int) | |
setModifiers(int) |