I derived a class from JTextField, and overrode it's processKeyEvent.
Everything works fine, until it encounters a backspace. Why isn't
super.processKeyEvent(e) working when it encounters VK_BACK_SPACE?(Intensive
debugging showed that case VK_BACK_SPACE is being handled, only the call to
super.processKeyEvent(e) does not seem to be doing anything when
e.getKeyCode()==VK_BACK_SPACE)
Thanks in advance,
Lem
Andrew Thompson - 02 Feb 2004 14:41 GMT
"Lem" ...
> I derived a class from JTextField, and overrode it's processKeyEvent.
> Everything works fine, until it encounters a backspace. Why isn't
> super.processKeyEvent(e) working when it encounters VK_BACK_SPACE?
That would depend largely on your code.
[ You know, ..that thing you did not supply.
But before you go dumping 20Kb of code
on the group, review
http://www.physci.org/codes/sscce.jsp ]
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
Jim Sculley - 03 Feb 2004 02:14 GMT
> I derived a class from JTextField, and overrode it's processKeyEvent.
Why?
> Everything works fine, until it encounters a backspace. Why isn't
> super.processKeyEvent(e) working when it encounters VK_BACK_SPACE?(Intensive
> debugging showed that case VK_BACK_SPACE is being handled, only the call to
> super.processKeyEvent(e) does not seem to be doing anything when
> e.getKeyCode()==VK_BACK_SPACE)
It is quite possible that you don't need to use processKeyEvent, in
which case your 'problem' may go away.
What exactly are you trying to do?
Jim S.

Signature
Remove my extraneous mandibular appendages to reply via email.