aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Another KeyListener Problem - Java wont recognize certain keys being pressed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Another KeyListener Problem - Java wont recognize certain keys being pressed." Watch "Another KeyListener Problem - Java wont recognize certain keys being pressed." New topic
Author

Another KeyListener Problem - Java wont recognize certain keys being pressed.

Stephen Bourget
Greenhorn

Joined: Aug 13, 2012
Posts: 5
Java wont recognize when I press the 'TAB' key. It recognizes every other key correctly, but when i hit 'TAB' it doesn't even trigger the keyPressed() method. I tried running it through eclipse and through the command prompt.

Is this a common problem? I couldn't find anything on it anywhere else.
And is there a way I can make Java recognize it?

Thanks,
Stephen.
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 563
It recognizes the key press, but the program may not do with it what you want it to do. Read this page for more info. Search for 'tab' if you're in a hurry.


Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
Stephen Bourget
Greenhorn

Joined: Aug 13, 2012
Posts: 5
Thanks, that told me exactly what i needed.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

Stephen, is your previous question resolved? Either way, we';d like to know (in that thread, not here).


luck, db
There are no new questions, but there may be new answers.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Another KeyListener Problem - Java wont recognize certain keys being pressed.