Get your CodeRanch badge!*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 557
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.


Learning Java using Eclipse on OpenSUSE 11.2
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: 4522
    
    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.
 
Don't get me started about those stupid light bulbs.
 
subject: Another KeyListener Problem - Java wont recognize certain keys being pressed.
 
Similar Threads
want to disable ALT+TAB key using java
keylistener for TAB key
Disabling JTable Cell selections
Problem with JTabbed pane focus
Fatal: Read Error: Could not read or parse the JNLP file.