Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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?
 
Master Rancher
Posts: 3257
33
 
Marshal
Posts: 59718
187
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!