public class KeyEventBlocker extends Object implements KeyListener
Constructor and Description |
---|
KeyEventBlocker(JTextComponent component,
boolean discardFirstKeyTypedEvent) |
Modifier and Type | Method and Description |
---|---|
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
void |
stopBlocking() |
void |
stopBlocking(boolean dispatchBlockedEvents)
Has to be called from AWT event thread to be properly synchronized
|
public KeyEventBlocker(JTextComponent component, boolean discardFirstKeyTypedEvent)
public void stopBlocking(boolean dispatchBlockedEvents)
public void stopBlocking()
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener