• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Stephen Bourget
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stephen Bourget
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that told me exactly what i needed.
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephen, is your previous question resolved? Either way, we';d like to know (in that thread, not here).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic