Available Methods
- getKeyCode ( )
- consume ( )
- VK_RIGHT
- VK_UP
- getID ( )
- getKeyChar ( )
- VK_DOWN
- KEY_PRESSED
- VK_ENTER
- VK_LEFT
- KEY_RELEASED
- KEY_TYPED
- VK_UNDEFINED
- VK_ESCAPE
- VK_SPACE
- VK_ALT
- getWhen ( )
- CHAR_UNDEFINED
- VK_A
- VK_BACK_SPACE
- VK_S
- getModifiers ( )
- isControlDown ( )
- VK_CONTROL
- isConsumed ( )
- VK_SHIFT
- VK_DELETE
- VK_W
- VK_SCROLL_LOCK
- getKeyText ( )
- getSource ( )
- VK_TAB
- VK_F10 ( )
- isShiftDown ( )
- VK_CAPS_LOCK
- getKeyModifiersText ( )
- VK_NUM_LOCK
- VK_D
- VK_HOME
- getComponent ( )
- isAltDown ( )
- VK_C
- VK_KANA_LOCK
- VK_R
- VK_META
- VK_MINUS
- CTRL_MASK
- VK_PAGE_UP
- VK_F1 ( )
- VK_B
- VK_PAGE_DOWN
- VK_V
- VK_F12 ( )
- VK_L
- VK_PLUS
- VK_Z
- VK_F2 ( )
- VK_9 ( )
- VK_I
- VK_END
- VK_N
- VK_P
- isActionKey ( )
- VK_8 ( )
- VK_SLASH
- VK_SEMICOLON
- getModifiersEx ( )
- VK_U
- VK_EQUALS
- VK_J
- VK_CONTEXT_MENU
- VK_0 ( )
- VK_F8 ( )
- VK_M
- VK_F7 ( )
- VK_X
- VK_O
- VK_ADD
- VK_H
- VK_5 ( )
- VK_F5 ( )
- VK_F4 ( )
- VK_7 ( )
- VK_K
- VK_UNDERSCORE
- VK_ALT_GRAPH
- VK_F11 ( )
- VK_COMMA
- VK_KP_LEFT
- ALT_MASK
- VK_BACK_SLASH
- VK_DEAD_ACUTE
- VK_DIVIDE
- VK_Q
- VK_E
- VK_3 ( )
- VK_CLOSE_BRACKET
- getExtendedKeyCodeForChar ( )
- VK_WINDOWS
- VK_6 ( )
- VK_PERIOD
- VK_NUMPAD0 ( )
- VK_NUMPAD1 ( )
- VK_INSERT
- isMetaDown ( )
- VK_F3 ( )
- VK_KP_RIGHT
- VK_F6 ( )
- setSource ( )
- VK_NUMPAD4 ( )
- VK_NUMPAD7 ( )
- VK_NUMPAD2 ( )
- SHIFT_MASK
- CTRL_DOWN_MASK
- VK_NUMPAD5 ( )
- VK_NUMPAD9 ( )
- VK_Y
- VK_T
- VK_2 ( )
- ALT_DOWN_MASK
- VK_F9 ( )
- VK_BACK_QUOTE
- VK_F
- VK_KP_UP
- VK_HELP
- VK_KP_DOWN
- VK_1 ( )
- VK_MULTIPLY
- META_MASK
- VK_G
- VK_SUBTRACT
- VK_F13 ( )
- getKeyLocation ( )
- VK_DECIMAL
- VK_COLON
- VK_4 ( )
- VK_PAUSE
- VK_OPEN_BRACKET
- VK_CIRCUMFLEX
- VK_QUOTE
- VK_NUMPAD6 ( )
- VK_CANCEL
- VK_NUMPAD3 ( )
- VK_PRINTSCREEN
- KEY_LOCATION_STANDARD
- VK_GREATER
- VK_DEAD_GRAVE
- VK_ROMAN_CHARACTERS
- VK_DEAD_BREVE
- VK_NUMPAD8 ( )
- VK_F14 ( )
- VK_AT
- VK_CONVERT
- VK_LEFT_PARENTHESIS
- VK_F16 ( )
- VK_F15 ( )
- VK_HALF_WIDTH
- VK_RIGHT_PARENTHESIS
- KEY_LOCATION_NUMPAD
- VK_STOP
- VK_DEAD_VOICED_SOUND
- VK_F21 ( )
- VK_INPUT_METHOD_ON_OFF
- VK_PASTE
- VK_KANJI
- isAltGraphDown ( )
- setKeyChar ( )
- SHIFT_DOWN_MASK
- VK_JAPANESE_HIRAGANA
- VK_DEAD_CEDILLA
- VK_NONCONVERT
- VK_KANA
- KEY_LOCATION_LEFT
- VK_DEAD_DOUBLEACUTE
- VK_DEAD_CIRCUMFLEX
- VK_BRACELEFT
- VK_HIRAGANA
- VK_EXCLAMATION_MARK
Related Classes
- java.io.File
- java.awt.Color
- java.awt.event.ActionEvent
- java.awt.event.ActionListener
- javax.swing.JPanel
- java.awt.Dimension
- javax.swing.JFrame
- java.awt.Font
- java.awt.event.MouseEvent
- javax.swing.JLabel
- javax.swing.JButton
- java.awt.BorderLayout
- javax.swing.JOptionPane
- java.awt.Component
- javax.swing.JScrollPane
- java.awt.event.WindowEvent
- java.awt.Toolkit
- javax.swing.JTextField
- javax.swing.SwingUtilities
- java.awt.event.MouseAdapter
- javax.swing.ImageIcon
- java.awt.Point
- javax.swing.JComponent
- java.awt.event.WindowAdapter
- javax.swing.JCheckBox
Java Code Examples for java.awt.event.KeyEvent#VK_EXCLAMATION_MARK
The following examples show how to use
java.awt.event.KeyEvent#VK_EXCLAMATION_MARK .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ActionUtils.java From workcraft with MIT License | 4 votes |
public static String getKeyString(int keyCode) { // Letters and numbers if (((keyCode >= KeyEvent.VK_0) && (keyCode <= KeyEvent.VK_9)) || ((keyCode >= KeyEvent.VK_A) && (keyCode <= KeyEvent.VK_Z))) { return String.valueOf((char) keyCode); } switch (keyCode) { // Navigation keys case KeyEvent.VK_LEFT: return "Left"; case KeyEvent.VK_UP: return "Up"; case KeyEvent.VK_RIGHT: return "Right"; case KeyEvent.VK_DOWN: return "Down"; // Extra navigation keys case KeyEvent.VK_INSERT: return "Insert"; case KeyEvent.VK_DELETE: return "Delete"; case KeyEvent.VK_END: return "End"; case KeyEvent.VK_HOME: return "Home"; case KeyEvent.VK_PAGE_UP: return "PgUp"; case KeyEvent.VK_PAGE_DOWN: return "PgDn"; // Function keys case KeyEvent.VK_F1: return "F1"; case KeyEvent.VK_F2: return "F2"; case KeyEvent.VK_F3: return "F3"; case KeyEvent.VK_F4: return "F4"; case KeyEvent.VK_F5: return "F5"; case KeyEvent.VK_F6: return "F6"; case KeyEvent.VK_F7: return "F7"; case KeyEvent.VK_F8: return "F8"; case KeyEvent.VK_F9: return "F9"; case KeyEvent.VK_F10: return "F10"; case KeyEvent.VK_F11: return "F11"; case KeyEvent.VK_F12: return "F12"; // Symbols case KeyEvent.VK_EXCLAMATION_MARK: return "!"; case KeyEvent.VK_QUOTEDBL: return "\""; case KeyEvent.VK_EURO_SIGN: return "€"; case KeyEvent.VK_DOLLAR: return "$"; case KeyEvent.VK_CIRCUMFLEX: return "^"; case KeyEvent.VK_AMPERSAND: return "&"; case KeyEvent.VK_ASTERISK: return "*"; case KeyEvent.VK_UNDERSCORE: return "_"; case KeyEvent.VK_MINUS: return "-"; case KeyEvent.VK_PLUS: return "+"; case KeyEvent.VK_EQUALS: return "="; case KeyEvent.VK_AT: return "@"; case KeyEvent.VK_NUMBER_SIGN: return "#"; case KeyEvent.VK_COLON: return ":"; case KeyEvent.VK_SEMICOLON: return ";"; case KeyEvent.VK_COMMA: return ","; case KeyEvent.VK_PERIOD: return "."; case KeyEvent.VK_SLASH: return "/"; case KeyEvent.VK_BACK_SLASH: return "\\"; case KeyEvent.VK_DEAD_TILDE: return "~"; // Parenthesis and brackets case KeyEvent.VK_LEFT_PARENTHESIS: return "("; case KeyEvent.VK_RIGHT_PARENTHESIS: return ")"; case KeyEvent.VK_OPEN_BRACKET: return "["; case KeyEvent.VK_CLOSE_BRACKET: return "]"; case KeyEvent.VK_BRACELEFT: return "{"; case KeyEvent.VK_BRACERIGHT: return "}"; case KeyEvent.VK_LESS: return "<"; case KeyEvent.VK_GREATER: return ">"; // Formatting keys case KeyEvent.VK_SPACE: return "Space"; case KeyEvent.VK_TAB: return "Tab"; case KeyEvent.VK_ENTER: return "Enter"; case KeyEvent.VK_BACK_SPACE: return "Backspace"; case KeyEvent.VK_ESCAPE: return "Esc"; } return "0x" + Integer.toString(keyCode, 16); }