Generated by
JDiff

Class java.awt.event.KeyEvent

Documentation changed from old to new.

Added Constructors
KeyEvent(Component, int, long, int, int, char, int)  
 

Changed Constructors
KeyEvent(Component, int, long, int, int) Documentation changed from old to new.
@deprecated as of JDK1.1
KeyEvent(Component, int, long, int, int, char) Documentation changed from old to new.
Constructs a KeyEvent object.
 

Added Methods
int getKeyLocation() Returns the location of the key that originated this key event.
 

Changed Methods
char getKeyChar() Documentation changed from old to new.
Returns the character associated with the key in this event.
int getKeyCode() Documentation changed from old to new.
Returns the integer keyCode associated with the key in this event.
String getKeyText(int) Documentation changed from old to new.
Returns a String describing the keyCode such as "HOME" "F1" or "A".
boolean isActionKey() Documentation changed from old to new.
Returns whether the key in this event is an "action" key.
String paramString() Documentation changed from old to new.
Returns a parameter string identifying this event.
void setModifiers(int) Documentation changed from old to new.
Set the modifiers to indicate additional keys that were held down (e.g.
void setSource(Object) Documentation changed from old to new.
Method was locally defined, but is now inherited from AWTEvent.
Retargets an event to a new source.
 

Added Fields
int KEY_LOCATION_LEFT A constant indicating that the key pressed or released is in the left key location (there is more than one possible location for this key).
int KEY_LOCATION_NUMPAD A constant indicating that the key event originated on the numeric keypad or with a virtual key corresponding to the numeric keypad.
int KEY_LOCATION_RIGHT A constant indicating that the key pressed or released is in the right key location (there is more than one possible location for this key).
int KEY_LOCATION_STANDARD A constant indicating that the key pressed or released is not distinguished as the left or right version of a key and did not originate on the numeric keypad (or did not originate with a virtual key corresponding to the numeric keypad).
int KEY_LOCATION_UNKNOWN A constant indicating that the keyLocation is indeterminate or not relevant.
int VK_SEPARATOR Constant for the Numpad Separator key.
 

Changed Fields
int VK_DOWN Documentation changed from old to new.
Constant for the non-numpad down arrow key.
int VK_KP_DOWN Documentation changed from old to new.
Constant for the numeric keypad down arrow key.
int VK_KP_LEFT Documentation changed from old to new.
Constant for the numeric keypad left arrow key.
int VK_KP_RIGHT Documentation changed from old to new.
Constant for the numeric keypad right arrow key.
int VK_KP_UP Documentation changed from old to new.
Constant for the numeric keypad up arrow key.
int VK_LEFT Documentation changed from old to new.
Constant for the non-numpad left arrow key.
int VK_RIGHT Documentation changed from old to new.
Constant for the non-numpad right arrow key.
int VK_SEPARATER Documentation changed from old to new.
This constant is obsolete and is included only for backwards compatibility.
int VK_UNDEFINED Documentation changed from old to new.
This value is used to indicate that the keyCode is unknown.
int VK_UP Documentation changed from old to new.
Constant for the non-numpad up arrow key.