|
|||||||||
| Home >> All >> java >> awt >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.awt.event
Class KeyEvent

java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
java.awt.event.ComponentEvent
java.awt.event.InputEvent
java.awt.event.KeyEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class KeyEvent
- extends InputEvent
This event is generated when a key is pressed or released. There are two categories of key events:
"Key typed" events are higher-level, and have already
compensated for modifiers and keyboard layout to generate a single Unicode
character. It may take several key press events to generate one key typed.
The getKeyCode method will return VK_UNDEFINED,
and getKeyChar will return a valid Unicode character or
CHAR_UNDEFINED.
"Key pressed" and "key released" events are lower-level, and
are platform and keyboard dependent. They correspond to the actaul motion
on a keyboard, and return a virtual key code which labels the key that was
pressed. The getKeyCode method will return one of the
VK_* constants (except VK_UNDEFINED), and the
getKeyChar method is undefined.
Some keys do not generate key typed events, such as the F1 or HELP keys. Not all keyboards can generate all virtual keys, and no attempt is made to simulate the ones that can't be typed. Virtual keys correspond to the keyboard layout, so for example, VK_Q in English is VK_A in French. Also, there are some additional virtual keys to ease handling of actions, such as VK_ALL_CANDIDATES in place of ALT+VK_CONVERT. Do not rely on the value of the VK_* constants, except for VK_ENTER, VK_BACK_SPACE, and VK_TAB.
- Since:
- 1.1
| Field Summary | |
static char |
CHAR_UNDEFINED
The only char with no valid Unicode interpretation. |
private boolean |
isProxyActive
Stores the state of the native event dispatching system, to correctly dispatch in Component#dispatchEventImpl when a proxy is active. |
static int |
KEY_FIRST
This is the first id in the range of event ids used by this class. |
static int |
KEY_LAST
This is the last id in the range of event ids used by this class. |
static int |
KEY_LOCATION_LEFT
Indicates the key is on the left side of the keyboard, such as the left shift. |
static int |
KEY_LOCATION_NUMPAD
Indicates the key is on the numeric pad, such as the numpad 0. |
static int |
KEY_LOCATION_RIGHT
Indicates the key is on the right side of the keyboard, such as the right shift. |
static int |
KEY_LOCATION_STANDARD
Indicates a standard key location, with no left/right variants and not on the numeric pad. |
static int |
KEY_LOCATION_UNKNOWN
Indicates unknown or irrelavent key location. |
static int |
KEY_PRESSED
This event id indicates a key was pressed. |
static int |
KEY_RELEASED
This event it indicates a key was released. |
static int |
KEY_TYPED
This event id indicates a key was typed, which is a key press followed by a key release to generate an actual Unicode character. |
private char |
keyChar
The Unicode character produced by the key type event. |
private int |
keyCode
The code assigned to the physical keyboard location (as adjusted by the keyboard layout). |
private int |
keyLocation
The keyboard location of the key. |
private static long |
serialVersionUID
Compatible with JDK 1.1+. |
static int |
VK_0
The virtual key VK_0. |
static int |
VK_1
The virtual key VK_1. |
static int |
VK_2
The virtual key VK_2. |
static int |
VK_3
The virtual key VK_3. |
static int |
VK_4
The virtual key VK_4. |
static int |
VK_5
The virtual key VK_5. |
static int |
VK_6
The virtual key VK_6. |
static int |
VK_7
The virtual key VK_7. |
static int |
VK_8
The virtual key VK_8. |
static int |
VK_9
The virtual key VK_9. |
static int |
VK_A
The virtual key VK_A. |
static int |
VK_ACCEPT
The virtual key VK_ACCEPT. |
static int |
VK_ADD
The virtual key VK_ADD. |
static int |
VK_AGAIN
The virtual key VK_AGAIN. |
static int |
VK_ALL_CANDIDATES
The virtual key VK_ALL_CANDIDATES. |
static int |
VK_ALPHANUMERIC
The virtual key VK_ALPHANUMERIC. |
static int |
VK_ALT
The virtual key VK_ALT. |
static int |
VK_ALT_GRAPH
The virtual key VK_ALT_GRAPH. |
static int |
VK_AMPERSAND
The virtual key VK_AMPERSAND. |
static int |
VK_ASTERISK
The virtual key VK_ASTERISK. |
static int |
VK_AT
The virtual key VK_AT. |
static int |
VK_B
The virtual key VK_B. |
static int |
VK_BACK_QUOTE
The virtual key VK_BACK_QUOTE. |
static int |
VK_BACK_SLASH
The virtual key VK_BACK_SLASH. |
static int |
VK_BACK_SPACE
The virtual key Backspace, which will always map to '\b'. |
static int |
VK_BRACELEFT
The virtual key VK_BRACELEFT. |
static int |
VK_BRACERIGHT
The virtual key VK_BRACERIGHT. |
static int |
VK_C
The virtual key VK_C. |
static int |
VK_CANCEL
The virtual key Cancel. |
static int |
VK_CAPS_LOCK
The virtual key VK_CAPS_LOCK. |
static int |
VK_CIRCUMFLEX
The virtual key VK_CIRCUMFLEX. |
static int |
VK_CLEAR
The virtual key VK_CLEAR. |
static int |
VK_CLOSE_BRACKET
The virtual key VK_CLOSE_BRACKET. |
static int |
VK_CODE_INPUT
The virtual key VK_CODE_INPUT. |
static int |
VK_COLON
The virtual key VK_COLON. |
static int |
VK_COMMA
The virtual key VK_COMMA. |
static int |
VK_COMPOSE
The virtual key VK_COMPOSE. |
static int |
VK_CONTROL
The virtual key VK_CONTROL. |
static int |
VK_CONVERT
The virtual key VK_CONVERT. |
static int |
VK_COPY
The virtual key VK_COPY. |
static int |
VK_CUT
The virtual key VK_CUT. |
static int |
VK_D
The virtual key VK_D. |
static int |
VK_DEAD_ABOVEDOT
The virtual key VK_DEAD_ABOVEDOT. |
static int |
VK_DEAD_ABOVERING
The virtual key VK_DEAD_ABOVERING. |
static int |
VK_DEAD_ACUTE
The virtual key VK_DEAD_ACUTE. |
static int |
VK_DEAD_BREVE
The virtual key VK_DEAD_BREVE. |
static int |
VK_DEAD_CARON
The virtual key VK_DEAD_CARON. |
static int |
VK_DEAD_CEDILLA
The virtual key VK_DEAD_CEDILLA. |
static int |
VK_DEAD_CIRCUMFLEX
The virtual key VK_DEAD_CIRCUMFLEX. |
static int |
VK_DEAD_DIAERESIS
The virtual key VK_DEAD_DIAERESIS. |
static int |
VK_DEAD_DOUBLEACUTE
The virtual key VK_DEAD_DOUBLEACUTE. |
static int |
VK_DEAD_GRAVE
The virtual key VK_DEAD_GRAVE. |
static int |
VK_DEAD_IOTA
The virtual key VK_DEAD_IOTA. |
static int |
VK_DEAD_MACRON
The virtual key VK_DEAD_MACRON. |
static int |
VK_DEAD_OGONEK
The virtual key VK_DEAD_OGONEK. |
static int |
VK_DEAD_SEMIVOICED_SOUND
The virtual key VK_DEAD_SEMIVOICED_SOUND. |
static int |
VK_DEAD_TILDE
The virtual key VK_DEAD_TILDE. |
static int |
VK_DEAD_VOICED_SOUND
The virtual key VK_DEAD_VOICED_SOUND. |
static int |
VK_DECIMAL
The virtual key VK_DECIMAL. |
static int |
VK_DELETE
The virtual key VK_DELETE. |
static int |
VK_DIVIDE
The virtual key VK_DIVIDE. |
static int |
VK_DOLLAR
The virtual key VK_DOLLAR. |
static int |
VK_DOWN
The virtual key for the non-numpad VK_DOWN. |
static int |
VK_E
The virtual key VK_E. |
static int |
VK_END
The virtual key VK_END. |
static int |
VK_ENTER
The virtual key Enter, which will always map to '\n'. |
static int |
VK_EQUALS
The virtual key VK_EQUALS. |
static int |
VK_ESCAPE
The virtual key VK_ESCAPE. |
static int |
VK_EURO_SIGN
The virtual key VK_EURO_SIGN. |
static int |
VK_EXCLAMATION_MARK
The virtual key VK_EXCLAMATION_MARK. |
static int |
VK_F
The virtual key VK_F. |
static int |
VK_F1
The virtual key VK_F1. |
static int |
VK_F10
The virtual key VK_F10. |
static int |
VK_F11
The virtual key VK_F11. |
static int |
VK_F12
The virtual key VK_F12. |
static int |
VK_F13
The virtual key VK_F13. |
static int |
VK_F14
The virtual key VK_F14. |
static int |
VK_F15
The virtual key VK_F15. |
static int |
VK_F16
The virtual key VK_F16. |
static int |
VK_F17
The virtual key VK_F17. |
static int |
VK_F18
The virtual key VK_F18. |
static int |
VK_F19
The virtual key VK_F19. |
static int |
VK_F2
The virtual key VK_F2. |
static int |
VK_F20
The virtual key VK_F20. |
static int |
VK_F21
The virtual key VK_F21. |
static int |
VK_F22
The virtual key VK_F22. |
static int |
VK_F23
The virtual key VK_F23. |
static int |
VK_F24
The virtual key VK_F24. |
static int |
VK_F3
The virtual key VK_F3. |
static int |
VK_F4
The virtual key VK_F4. |
static int |
VK_F5
The virtual key VK_F5. |
static int |
VK_F6
The virtual key VK_F6. |
static int |
VK_F7
The virtual key VK_F7. |
static int |
VK_F8
The virtual key VK_F8. |
static int |
VK_F9
The virtual key VK_F9. |
static int |
VK_FINAL
The virtual key VK_FINAL. |
static int |
VK_FIND
The virtual key VK_FIND. |
static int |
VK_FULL_WIDTH
The virtual key VK_FULL_WIDTH. |
static int |
VK_G
The virtual key VK_G. |
static int |
VK_GREATER
The virtual key VK_GREATER. |
static int |
VK_H
The virtual key VK_H. |
static int |
VK_HALF_WIDTH
The virtual key VK_HALF_WIDTH. |
static int |
VK_HELP
The virtual key VK_HELP. |
static int |
VK_HIRAGANA
The virtual key VK_HIRAGANA. |
static int |
VK_HOME
The virtual key VK_HOME. |
static int |
VK_I
The virtual key VK_I. |
static int |
VK_INPUT_METHOD_ON_OFF
The virtual key VK_INPUT_METHOD_ON_OFF. |
static int |
VK_INSERT
The virtual key VK_INSERT. |
static int |
VK_INVERTED_EXCLAMATION_MARK
The virtual key VK_INVERTED_EXCLAMATION_MARK. |
static int |
VK_J
The virtual key VK_J. |
static int |
VK_JAPANESE_HIRAGANA
The virtual key VK_JAPANESE_HIRAGANA. |
static int |
VK_JAPANESE_KATAKANA
The virtual key VK_JAPANESE_KATAKANA. |
static int |
VK_JAPANESE_ROMAN
The virtual key VK_JAPANESE_ROMAN. |
static int |
VK_K
The virtual key VK_K. |
static int |
VK_KANA
The virtual key VK_KANA. |
static int |
VK_KANA_LOCK
The virtual key VK_KANA_LOCK. |
static int |
VK_KANJI
The virtual key VK_KANJI. |
static int |
VK_KATAKANA
The virtual key VK_KATAKANA. |
static int |
VK_KP_DOWN
The virtual key for the numpad VK_KP_DOWN. |
static int |
VK_KP_LEFT
The virtual key for the numpad VK_KP_LEFT. |
static int |
VK_KP_RIGHT
The virtual key for the numpad VK_KP_RIGHT. |
static int |
VK_KP_UP
The virtual key for the numpad VK_KP_UP. |
static int |
VK_L
The virtual key VK_L. |
static int |
VK_LEFT
The virtual key for the non-numpad VK_LEFT. |
static int |
VK_LEFT_PARENTHESIS
The virtual key VK_LEFT_PARENTHESIS. |
static int |
VK_LESS
The virtual key VK_LESS. |
static int |
VK_M
The virtual key VK_M. |
static int |
VK_META
The virtual key VK_META. |
static int |
VK_MINUS
The virtual key VK_MINUS. |
static int |
VK_MODECHANGE
The virtual key VK_MODECHANGE. |
static int |
VK_MULTIPLY
The virtual key VK_MULTIPLY. |
static int |
VK_N
The virtual key VK_N. |
static int |
VK_NONCONVERT
The virtual key VK_NONCONVERT. |
static int |
VK_NUM_LOCK
The virtual key VK_NUM_LOCK. |
static int |
VK_NUMBER_SIGN
The virtual key VK_NUMBER_SIGN. |
static int |
VK_NUMPAD0
The virtual key VK_NUMPAD0. |
static int |
VK_NUMPAD1
The virtual key VK_NUMPAD1. |
static int |
VK_NUMPAD2
The virtual key VK_NUMPAD2. |
static int |
VK_NUMPAD3
The virtual key VK_NUMPAD3. |
static int |
VK_NUMPAD4
The virtual key VK_NUMPAD4. |
static int |
VK_NUMPAD5
The virtual key VK_NUMPAD5. |
static int |
VK_NUMPAD6
The virtual key VK_NUMPAD6. |
static int |
VK_NUMPAD7
The virtual key VK_NUMPAD7. |
static int |
VK_NUMPAD8
The virtual key VK_NUMPAD8. |
static int |
VK_NUMPAD9
The virtual key VK_NUMPAD9. |
static int |
VK_O
The virtual key VK_O. |
static int |
VK_OPEN_BRACKET
The virtual key VK_OPEN_BRACKET. |
static int |
VK_P
The virtual key VK_P. |
static int |
VK_PAGE_DOWN
The virtual key VK_PAGE_DOWN. |
static int |
VK_PAGE_UP
The virtual key VK_PAGE_UP. |
static int |
VK_PASTE
The virtual key VK_PASTE. |
static int |
VK_PAUSE
The virtual key VK_PAUSE. |
static int |
VK_PERIOD
The virtual key VK_PERIOD. |
static int |
VK_PLUS
The virtual key VK_PLUS. |
static int |
VK_PREVIOUS_CANDIDATE
The virtual key VK_PREVIOUS_CANDIDATE. |
static int |
VK_PRINTSCREEN
The virtual key VK_PRINTSCREEN. |
static int |
VK_PROPS
The virtual key VK_PROPS. |
static int |
VK_Q
The virtual key VK_Q. |
static int |
VK_QUOTE
The virtual key VK_QUOTE. |
static int |
VK_QUOTEDBL
The virtual key VK_QUOTEDBL. |
static int |
VK_R
The virtual key VK_R. |
static int |
VK_RIGHT
The virtual key for the non-numpad VK_RIGHT. |
static int |
VK_RIGHT_PARENTHESIS
The virtual key VK_RIGHT_PARENTHESIS. |
static int |
VK_ROMAN_CHARACTERS
The virtual key VK_ROMAN_CHARACTERS. |
static int |
VK_S
The virtual key VK_S. |
static int |
VK_SCROLL_LOCK
The virtual key VK_SCROLL_LOCK. |
static int |
VK_SEMICOLON
The virtual key VK_SEMICOLON. |
static int |
VK_SEPARATER
Deprecated. use VK_SEPARATOR 55 |
static int |
VK_SEPARATOR
The virtual key VK_SEPARATOR. |
static int |
VK_SHIFT
The virtual key VK_SHIFT. |
static int |
VK_SLASH
The virtual key VK_SLASH. |
static int |
VK_SPACE
The virtual key VK_SPACE. |
static int |
VK_STOP
The virtual key VK_STOP. |
static int |
VK_SUBTRACT
The virtual key VK_SUBTRACT. |
static int |
VK_T
The virtual key VK_T. |
static int |
VK_TAB
The virtual key Tab, which will always map to '\t'. |
static int |
VK_U
The virtual key VK_U. |
static int |
VK_UNDEFINED
The virtual key VK_UNDEFINED. |
static int |
VK_UNDERSCORE
The virtual key VK_UNDERSCORE. |
static int |
VK_UNDO
The virtual key VK_UNDO. |
static int |
VK_UP
The virtual key for the non-numpad VK_UP. |
static int |
VK_V
The virtual key VK_V. |
static int |
VK_W
The virtual key VK_W. |
static int |
VK_X
The virtual key VK_X. |
static int |
VK_Y
The virtual key VK_Y. |
static int |
VK_Z
The virtual key VK_Z. |
| Fields inherited from class java.awt.event.InputEvent |
ALT_DOWN_MASK, ALT_GRAPH_DOWN_MASK, ALT_GRAPH_MASK, ALT_MASK, BUTTON1_DOWN_MASK, BUTTON1_MASK, BUTTON2_DOWN_MASK, BUTTON2_MASK, BUTTON3_DOWN_MASK, BUTTON3_MASK, CONVERT_MASK, CTRL_DOWN_MASK, CTRL_MASK, META_DOWN_MASK, META_MASK, modifiers, modifiersEx, SHIFT_DOWN_MASK, SHIFT_MASK |
| Fields inherited from class java.awt.event.ComponentEvent |
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
KeyEvent(java.awt.Component source,
int id,
long when,
int modifiers,
int keyCode)
Deprecated. |
|
KeyEvent(java.awt.Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar)
Initializes a new instance of KeyEvent with the specified
information. |
|
KeyEvent(java.awt.Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar,
int keyLocation)
Initializes a new instance of KeyEvent with the specified
information. |
|
| Method Summary | |
char |
getKeyChar()
Returns the Unicode value for the event key. |
int |
getKeyCode()
Returns the key code for the event key. |
int |
getKeyLocation()
Returns the keyboard location of the key that generated this event. |
static java.lang.String |
getKeyModifiersText(int modifiers)
Returns a string describing the modifiers, such as "Shift" or "Ctrl+Button1". |
static java.lang.String |
getKeyText(int keyCode)
Returns the text name of key code, such as "HOME", "F1", or "A". |
boolean |
isActionKey()
Tests whether or not this key is an action key. |
java.lang.String |
paramString()
Returns a string identifying the event. |
private void |
readObject(java.io.ObjectInputStream s)
Reads in the object from a serial stream. |
void |
setKeyChar(char keyChar)
Sets the Unicode character for this event to the specified value. |
void |
setKeyCode(int keyCode)
Sets the key code for this event. |
void |
setModifiers(int modifiers)
Deprecated. |
| Methods inherited from class java.awt.event.InputEvent |
consume, getModifiers, getModifiersEx, getModifiersExText, getWhen, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isShiftDown |
| Methods inherited from class java.awt.event.ComponentEvent |
getComponent |
| Methods inherited from class java.awt.AWTEvent |
getID, setSource, toString |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- Compatible with JDK 1.1+.
- See Also:
- Constant Field Values
KEY_FIRST
public static final int KEY_FIRST
- This is the first id in the range of event ids used by this class.
- See Also:
- Constant Field Values
KEY_LAST
public static final int KEY_LAST
- This is the last id in the range of event ids used by this class.
- See Also:
- Constant Field Values
KEY_TYPED
public static final int KEY_TYPED
- This event id indicates a key was typed, which is a key press followed
by a key release to generate an actual Unicode character. It may take
several key presses to generate one key typed event, and some action
keys have no corresponding key typed.
- See Also:
- Constant Field Values
KEY_PRESSED
public static final int KEY_PRESSED
- This event id indicates a key was pressed.
- See Also:
- Constant Field Values
KEY_RELEASED
public static final int KEY_RELEASED
- This event it indicates a key was released.
- See Also:
- Constant Field Values
VK_ENTER
public static final int VK_ENTER
- The virtual key Enter, which will always map to '\n'.
- See Also:
- Constant Field Values
VK_BACK_SPACE
public static final int VK_BACK_SPACE
- The virtual key Backspace, which will always map to '\b'.
- See Also:
- Constant Field Values
VK_TAB
public static final int VK_TAB
- The virtual key Tab, which will always map to '\t'.
- See Also:
- Constant Field Values
VK_CANCEL
public static final int VK_CANCEL
- The virtual key Cancel.
- See Also:
- Constant Field Values
VK_CLEAR
public static final int VK_CLEAR
- The virtual key VK_CLEAR.
- See Also:
- Constant Field Values
VK_SHIFT
public static final int VK_SHIFT
- The virtual key VK_SHIFT.
- See Also:
- Constant Field Values
VK_CONTROL
public static final int VK_CONTROL
- The virtual key VK_CONTROL.
- See Also:
- Constant Field Values
VK_ALT
public static final int VK_ALT
- The virtual key VK_ALT.
- See Also:
- Constant Field Values
VK_PAUSE
public static final int VK_PAUSE
- The virtual key VK_PAUSE.
- See Also:
- Constant Field Values
VK_CAPS_LOCK
public static final int VK_CAPS_LOCK
- The virtual key VK_CAPS_LOCK.
- See Also:
- Constant Field Values
VK_ESCAPE
public static final int VK_ESCAPE
- The virtual key VK_ESCAPE.
- See Also:
- Constant Field Values
VK_SPACE
public static final int VK_SPACE
- The virtual key VK_SPACE.
- See Also:
- Constant Field Values
VK_PAGE_UP
public static final int VK_PAGE_UP
- The virtual key VK_PAGE_UP.
- See Also:
- Constant Field Values
VK_PAGE_DOWN
public static final int VK_PAGE_DOWN
- The virtual key VK_PAGE_DOWN.
- See Also:
- Constant Field Values
VK_END
public static final int VK_END
- The virtual key VK_END.
- See Also:
- Constant Field Values
VK_HOME
public static final int VK_HOME
- The virtual key VK_HOME.
- See Also:
- Constant Field Values
VK_LEFT
public static final int VK_LEFT
- The virtual key for the non-numpad VK_LEFT.
- See Also:
VK_KP_LEFT55 , Constant Field Values
VK_UP
public static final int VK_UP
- The virtual key for the non-numpad VK_UP.
- See Also:
VK_KP_UP55 , Constant Field Values
VK_RIGHT
public static final int VK_RIGHT
- The virtual key for the non-numpad VK_RIGHT.
- See Also:
VK_KP_RIGHT55 , Constant Field Values
VK_DOWN
public static final int VK_DOWN
- The virtual key for the non-numpad VK_DOWN.
- See Also:
VK_KP_DOWN55 , Constant Field Values
VK_COMMA
public static final int VK_COMMA
- The virtual key VK_COMMA.
- See Also:
- Constant Field Values
VK_MINUS
public static final int VK_MINUS
- The virtual key VK_MINUS.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_PERIOD
public static final int VK_PERIOD
- The virtual key VK_PERIOD.
- See Also:
- Constant Field Values
VK_SLASH
public static final int VK_SLASH
- The virtual key VK_SLASH.
- See Also:
- Constant Field Values
VK_0
public static final int VK_0
- The virtual key VK_0.
- See Also:
- Constant Field Values
VK_1
public static final int VK_1
- The virtual key VK_1.
- See Also:
- Constant Field Values
VK_2
public static final int VK_2
- The virtual key VK_2.
- See Also:
- Constant Field Values
VK_3
public static final int VK_3
- The virtual key VK_3.
- See Also:
- Constant Field Values
VK_4
public static final int VK_4
- The virtual key VK_4.
- See Also:
- Constant Field Values
VK_5
public static final int VK_5
- The virtual key VK_5.
- See Also:
- Constant Field Values
VK_6
public static final int VK_6
- The virtual key VK_6.
- See Also:
- Constant Field Values
VK_7
public static final int VK_7
- The virtual key VK_7.
- See Also:
- Constant Field Values
VK_8
public static final int VK_8
- The virtual key VK_8.
- See Also:
- Constant Field Values
VK_9
public static final int VK_9
- The virtual key VK_9.
- See Also:
- Constant Field Values
VK_SEMICOLON
public static final int VK_SEMICOLON
- The virtual key VK_SEMICOLON.
- See Also:
- Constant Field Values
VK_EQUALS
public static final int VK_EQUALS
- The virtual key VK_EQUALS.
- See Also:
- Constant Field Values
VK_A
public static final int VK_A
- The virtual key VK_A.
- See Also:
- Constant Field Values
VK_B
public static final int VK_B
- The virtual key VK_B.
- See Also:
- Constant Field Values
VK_C
public static final int VK_C
- The virtual key VK_C.
- See Also:
- Constant Field Values
VK_D
public static final int VK_D
- The virtual key VK_D.
- See Also:
- Constant Field Values
VK_E
public static final int VK_E
- The virtual key VK_E.
- See Also:
- Constant Field Values
VK_F
public static final int VK_F
- The virtual key VK_F.
- See Also:
- Constant Field Values
VK_G
public static final int VK_G
- The virtual key VK_G.
- See Also:
- Constant Field Values
VK_H
public static final int VK_H
- The virtual key VK_H.
- See Also:
- Constant Field Values
VK_I
public static final int VK_I
- The virtual key VK_I.
- See Also:
- Constant Field Values
VK_J
public static final int VK_J
- The virtual key VK_J.
- See Also:
- Constant Field Values
VK_K
public static final int VK_K
- The virtual key VK_K.
- See Also:
- Constant Field Values
VK_L
public static final int VK_L
- The virtual key VK_L.
- See Also:
- Constant Field Values
VK_M
public static final int VK_M
- The virtual key VK_M.
- See Also:
- Constant Field Values
VK_N
public static final int VK_N
- The virtual key VK_N.
- See Also:
- Constant Field Values
VK_O
public static final int VK_O
- The virtual key VK_O.
- See Also:
- Constant Field Values
VK_P
public static final int VK_P
- The virtual key VK_P.
- See Also:
- Constant Field Values
VK_Q
public static final int VK_Q
- The virtual key VK_Q.
- See Also:
- Constant Field Values
VK_R
public static final int VK_R
- The virtual key VK_R.
- See Also:
- Constant Field Values
VK_S
public static final int VK_S
- The virtual key VK_S.
- See Also:
- Constant Field Values
VK_T
public static final int VK_T
- The virtual key VK_T.
- See Also:
- Constant Field Values
VK_U
public static final int VK_U
- The virtual key VK_U.
- See Also:
- Constant Field Values
VK_V
public static final int VK_V
- The virtual key VK_V.
- See Also:
- Constant Field Values
VK_W
public static final int VK_W
- The virtual key VK_W.
- See Also:
- Constant Field Values
VK_X
public static final int VK_X
- The virtual key VK_X.
- See Also:
- Constant Field Values
VK_Y
public static final int VK_Y
- The virtual key VK_Y.
- See Also:
- Constant Field Values
VK_Z
public static final int VK_Z
- The virtual key VK_Z.
- See Also:
- Constant Field Values
VK_OPEN_BRACKET
public static final int VK_OPEN_BRACKET
- The virtual key VK_OPEN_BRACKET.
- See Also:
- Constant Field Values
VK_BACK_SLASH
public static final int VK_BACK_SLASH
- The virtual key VK_BACK_SLASH.
- See Also:
- Constant Field Values
VK_CLOSE_BRACKET
public static final int VK_CLOSE_BRACKET
- The virtual key VK_CLOSE_BRACKET.
- See Also:
- Constant Field Values
VK_NUMPAD0
public static final int VK_NUMPAD0
- The virtual key VK_NUMPAD0.
- See Also:
- Constant Field Values
VK_NUMPAD1
public static final int VK_NUMPAD1
- The virtual key VK_NUMPAD1.
- See Also:
- Constant Field Values
VK_NUMPAD2
public static final int VK_NUMPAD2
- The virtual key VK_NUMPAD2.
- See Also:
- Constant Field Values
VK_NUMPAD3
public static final int VK_NUMPAD3
- The virtual key VK_NUMPAD3.
- See Also:
- Constant Field Values
VK_NUMPAD4
public static final int VK_NUMPAD4
- The virtual key VK_NUMPAD4.
- See Also:
- Constant Field Values
VK_NUMPAD5
public static final int VK_NUMPAD5
- The virtual key VK_NUMPAD5.
- See Also:
- Constant Field Values
VK_NUMPAD6
public static final int VK_NUMPAD6
- The virtual key VK_NUMPAD6.
- See Also:
- Constant Field Values
VK_NUMPAD7
public static final int VK_NUMPAD7
- The virtual key VK_NUMPAD7.
- See Also:
- Constant Field Values
VK_NUMPAD8
public static final int VK_NUMPAD8
- The virtual key VK_NUMPAD8.
- See Also:
- Constant Field Values
VK_NUMPAD9
public static final int VK_NUMPAD9
- The virtual key VK_NUMPAD9.
- See Also:
- Constant Field Values
VK_MULTIPLY
public static final int VK_MULTIPLY
- The virtual key VK_MULTIPLY.
- See Also:
- Constant Field Values
VK_ADD
public static final int VK_ADD
- The virtual key VK_ADD.
- See Also:
- Constant Field Values
VK_SEPARATER
public static final int VK_SEPARATER
- Deprecated. use
VK_SEPARATOR55- The virtual key VK_SEPARATOR, handily mispelled for those who can't figure it out.
- See Also:
- Constant Field Values
- The virtual key VK_SEPARATOR, handily mispelled for those who can't figure it out.
VK_SEPARATOR
public static final int VK_SEPARATOR
- The virtual key VK_SEPARATOR.
- Since:
- 1.4
- See Also:
- Constant Field Values
VK_SUBTRACT
public static final int VK_SUBTRACT
- The virtual key VK_SUBTRACT.
- See Also:
- Constant Field Values
VK_DECIMAL
public static final int VK_DECIMAL
- The virtual key VK_DECIMAL.
- See Also:
- Constant Field Values
VK_DIVIDE
public static final int VK_DIVIDE
- The virtual key VK_DIVIDE.
- See Also:
- Constant Field Values
VK_DELETE
public static final int VK_DELETE
- The virtual key VK_DELETE.
- See Also:
- Constant Field Values
VK_NUM_LOCK
public static final int VK_NUM_LOCK
- The virtual key VK_NUM_LOCK.
- See Also:
- Constant Field Values
VK_SCROLL_LOCK
public static final int VK_SCROLL_LOCK
- The virtual key VK_SCROLL_LOCK.
- See Also:
- Constant Field Values
VK_F1
public static final int VK_F1
- The virtual key VK_F1.
- See Also:
- Constant Field Values
VK_F2
public static final int VK_F2
- The virtual key VK_F2.
- See Also:
- Constant Field Values
VK_F3
public static final int VK_F3
- The virtual key VK_F3.
- See Also:
- Constant Field Values
VK_F4
public static final int VK_F4
- The virtual key VK_F4.
- See Also:
- Constant Field Values
VK_F5
public static final int VK_F5
- The virtual key VK_F5.
- See Also:
- Constant Field Values
VK_F6
public static final int VK_F6
- The virtual key VK_F6.
- See Also:
- Constant Field Values
VK_F7
public static final int VK_F7
- The virtual key VK_F7.
- See Also:
- Constant Field Values
VK_F8
public static final int VK_F8
- The virtual key VK_F8.
- See Also:
- Constant Field Values
VK_F9
public static final int VK_F9
- The virtual key VK_F9.
- See Also:
- Constant Field Values
VK_F10
public static final int VK_F10
- The virtual key VK_F10.
- See Also:
- Constant Field Values
VK_F11
public static final int VK_F11
- The virtual key VK_F11.
- See Also:
- Constant Field Values
VK_F12
public static final int VK_F12
- The virtual key VK_F12.
- See Also:
- Constant Field Values
VK_F13
public static final int VK_F13
- The virtual key VK_F13.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F14
public static final int VK_F14
- The virtual key VK_F14.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F15
public static final int VK_F15
- The virtual key VK_F15.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F16
public static final int VK_F16
- The virtual key VK_F16.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F17
public static final int VK_F17
- The virtual key VK_F17.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F18
public static final int VK_F18
- The virtual key VK_F18.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F19
public static final int VK_F19
- The virtual key VK_F19.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F20
public static final int VK_F20
- The virtual key VK_F20.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F21
public static final int VK_F21
- The virtual key VK_F21.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F22
public static final int VK_F22
- The virtual key VK_F22.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F23
public static final int VK_F23
- The virtual key VK_F23.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_F24
public static final int VK_F24
- The virtual key VK_F24.
- Since:
- 1.2
- See Also:
- Constant Field Values
VK_PRINTSCREEN
public static final int VK_PRINTSCREEN
- The virtual key VK_PRINTSCREEN.
- See Also:
- Constant Field Values
VK_INSERT
public static final int VK_INSERT
- The virtual key VK_INSERT.
- See Also:
- Constant Field Values
VK_HELP
public static final int VK_HELP
- The virtual key VK_HELP.
- See Also:
- Constant Field Values
VK_META
public static final int VK_META
- The virtual key VK_META.
- See Also:
- Constant Field Values
VK_BACK_QUOTE
public static final int VK_BACK_QUOTE
- The virtual key VK_BACK_QUOTE.
- See Also:
- Constant Field Values
VK_QUOTE
public static final int VK_QUOTE
- The virtual key VK_QUOTE.
- See Also:
- Constant Field Values
VK_KP_UP
public static final int VK_KP_UP
JAVADOC