Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.awt.event.KeyEvent

Availability: JDK 1.1

public class KeyEvent extends InputEvent {
   // Public Constructors
      public KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar);
      public KeyEvent(Component source, int id, long when, int modifiers, int keyCode);
   // Constants
      public static final char CHAR_UNDEFINED;
      public static final int KEY_FIRST;
      public static final int KEY_LAST;
      public static final int KEY_PRESSED;
      public static final int KEY_RELEASED;
      public static final int KEY_TYPED;
      public static final int VK_0;
      public static final int VK_1;
      public static final int VK_2;
      public static final int VK_3;
      public static final int VK_4;
      public static final int VK_5;
      public static final int VK_6;
      public static final int VK_7;
      public static final int VK_8;
      public static final int VK_9;
      public static final int VK_A;
      public static final int VK_ACCEPT;
      public static final int VK_ADD;
      public static final int VK_ALT;
      public static final int VK_B;
      public static final int VK_BACK_QUOTE;
      public static final int VK_BACK_SLASH;
      public static final int VK_BACK_SPACE;
      public static final int VK_C;
      public static final int VK_CANCEL;
      public static final int VK_CAPS_LOCK;
      public static final int VK_CLEAR;
      public static final int VK_CLOSE_BRACKET;
      public static final int VK_COMMA;
      public static final int VK_CONTROL;
      public static final int VK_CONVERT;
      public static final int VK_D;
      public static final int VK_DECIMAL;
      public static final int VK_DELETE;
      public static final int VK_DIVIDE;
      public static final int VK_DOWN;
      public static final int VK_E;
      public static final int VK_END;
      public static final int VK_ENTER;
      public static final int VK_EQUALS;
      public static final int VK_ESCAPE;
      public static final int VK_F;
      public static final int VK_F1;
      public static final int VK_F10;
      public static final int VK_F11;
      public static final int VK_F12;
      public static final int VK_F2;
      public static final int VK_F3;
      public static final int VK_F4;
      public static final int VK_F5;
      public static final int VK_F6;
      public static final int VK_F7;
      public static final int VK_F8;
      public static final int VK_F9;
      public static final int VK_FINAL;
      public static final int VK_G;
      public static final int VK_H;
      public static final int VK_HELP;
      public static final int VK_HOME;
      public static final int VK_I;
      public static final int VK_INSERT;
      public static final int VK_J;
      public static final int VK_K;
      public static final int VK_KANA;
      public static final int VK_KANJI;
      public static final int VK_L;
      public static final int VK_LEFT;
      public static final int VK_M;
      public static final int VK_META;
      public static final int VK_MODECHANGE;
      public static final int VK_MULTIPLY;
      public static final int VK_N;
      public static final int VK_NONCONVERT;
      public static final int VK_NUMPAD0;
      public static final int VK_NUMPAD1;
      public static final int VK_NUMPAD2;
      public static final int VK_NUMPAD3;
      public static final int VK_NUMPAD4;
      public static final int VK_NUMPAD5;
      public static final int VK_NUMPAD6;
      public static final int VK_NUMPAD7;
      public static final int VK_NUMPAD8;
      public static final int VK_NUMPAD9;
      public static final int VK_NUM_LOCK;
      public static final int VK_O;
      public static final int VK_OPEN_BRACKET;
      public static final int VK_P;
      public static final int VK_PAGE_DOWN;
      public static final int VK_PAGE_UP;
      public static final int VK_PAUSE;
      public static final int VK_PERIOD;
      public static final int VK_PRINTSCREEN;
      public static final int VK_Q;
      public static final int VK_QUOTE;
      public static final int VK_R;
      public static final int VK_RIGHT;
      public static final int VK_S;
      public static final int VK_SCROLL_LOCK;
      public static final int VK_SEMICOLON;
      public static final int VK_SEPARATER;
      public static final int VK_SHIFT;
      public static final int VK_SLASH;
      public static final int VK_SPACE;
      public static final int VK_SUBTRACT;
      public static final int VK_T;
      public static final int VK_TAB;
      public static final int VK_U;
      public static final int VK_UNDEFINED;
      public static final int VK_UP;
      public static final int VK_V;
      public static final int VK_W;
      public static final int VK_X;
      public static final int VK_Y;
      public static final int VK_Z;
   // Class Methods
      public static String getKeyModifiersText(int modifiers);
      public static String getKeyText(int keyCode);
   // Public Instance Methods
      public char getKeyChar();
      public int getKeyCode();
      public boolean isActionKey();
      public String paramString();  // Overrides ComponentEvent.paramString()
      public void setKeyChar(char keyChar);
      public void setKeyCode(int keyCode);
      public void setModifiers(int modifiers);
}
Passed To:
AWTEventMulticaster.keyPressed(), AWTEventMulticaster.keyReleased(), AWTEventMulticaster.keyTyped(), Component.processKeyEvent(), KeyAdapter.keyPressed(), KeyAdapter.keyReleased(), KeyAdapter.keyTyped(), KeyListener.keyPressed(), KeyListener.keyReleased(), KeyListener.keyTyped().

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.