File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Java in General
Joined: Nov 22, 2008
Apr 23, 2001 05:10:00
I want to have a counter in the method keyTyped(
but I don't want to count 'backspace', 'space', 'escape', F1-F12, 'ctrl', 'shift' and 'tab'.
Is there anyway of doing this?
Joined: Sep 29, 2000
Apr 23, 2001 09:26:00
Of course you can just look the hard way for VK_BACK_SPACE, VK_SPACE, VK_ESCAPE etc and ignore those before you do your counting.
"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
Help! About hotkey
Not getting key pressed event.
Aren't Listeners very strange creatures?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014