public class EscKeyListener
extends java.awt.event.KeyAdapter
Constructor and Description |
---|
EscKeyListener(java.awt.Window wFrame)
Creates an EscKeyListener for the given Window.
|
Modifier and Type | Method and Description |
---|---|
void |
install()
Installs the key listener into the Windows passed in the constructor.
|
void |
keyTyped(java.awt.event.KeyEvent ke)
Receives key-typed events (called when the user types a key).
|
java.lang.String |
toString() |
public EscKeyListener(java.awt.Window wFrame)
wFrame
- The frame to connect this listener to. All
of the frame's Components will have this listener
installed, too.public void install()
public void keyTyped(java.awt.event.KeyEvent ke)
keyTyped
in interface java.awt.event.KeyListener
keyTyped
in class java.awt.event.KeyAdapter
ke
- The key-typed event.public java.lang.String toString()
toString
in class java.lang.Object