Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Get {KeyListener} to Process the Tab Key  RSS feed

 
Ranch Hand
Posts: 224
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just wrote a little program to see what happens when I enter keys using class {KeyListener}. The program is:

This works just fine for every key I enter except the tab key. Nothing happens when I press the tab key. Does anyone know what I have to do to get my code to process the tab key?
 
Rancher
Posts: 2973
32
 
Marshal
Posts: 58830
179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I shall move you to our GUIs forum.

You have probably got the answer from the SO link Norm gave you, but have you seen the Java™ Tutorials? This part may be useful too.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!