Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2004

Tip: Looking for answers? Try searching our database.

VK_BACK_SPACE

Thread view: 
Lem - 02 Feb 2004 14:25 GMT
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.