I've derived a class from JTextField and Ive overwritten processKeyEvent.
How would I know if the event is a key pressed event?
Thanks in advance,
Lem
Andrew Thompson - 02 Feb 2004 13:22 GMT
"Lem" ...
> I've derived a class from JTextField and Ive overwritten processKeyEvent.
> How would I know if the event is a key pressed event?
Implement KeyListener..
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
Lem - 02 Feb 2004 14:02 GMT
I just figured it out. Use KeyEvent.getID().
Lem
> I've derived a class from JTextField and Ive overwritten processKeyEvent.
> How would I know if the event is a key pressed event?
>
> Thanks in advance,
> Lem