>I use the code below to detect when a key is being pressed. Unfortunately
>it only responds when the key is first pressed.
>
> What I would like to do is detect when the key is initially pressed, and
> when it is released.
>
> How do I modify the code below to achieve this?
use need KeyStroke.getKeyStroke(int keyCode, int modifiers, boolean
onKeyRelease)
--
Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities