public abstract class KeyAdapter extends Object implements KeyListener
Constructor and Description |
---|
KeyAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
public void keyPressed(KeyEvent e)
KeyListener
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
KeyListener
released
, excluding auto-repeat
modifier
keys. See KeyEvent
.
To simulated the removed keyTyped(KeyEvent e)
semantics,
simply apply the following constraints upfront and bail out if not matched, i.e.:
if( !e.isPrintableKey() || e.isAutoRepeat() ) { return; }
keyReleased
in interface KeyListener
Copyright 2010 JogAmp Community.