public class KeyEvent extends Event
Modifier and Type | Field and Description |
---|---|
static int |
PRESS |
static int |
RELEASE |
static int |
TYPE |
Constructor and Description |
---|
KeyEvent(java.lang.Object nativeObject,
long millis,
int action,
int modifiers,
char key,
int keyCode) |
KeyEvent(java.lang.Object nativeObject,
long millis,
int action,
int modifiers,
char key,
int keyCode,
boolean isAutoRepeat) |
Modifier and Type | Method and Description |
---|---|
char |
getKey() |
int |
getKeyCode() |
boolean |
isAutoRepeat() |
getAction, getFlavor, getMillis, getModifiers, getNative, isAltDown, isControlDown, isMetaDown, isShiftDown
public static final int PRESS
public static final int RELEASE
public static final int TYPE