A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
Aren't Listeners very strange creatures?
Help! About hotkey
Not getting key pressed event.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014