This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes regarding tab key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "regarding tab key" Watch "regarding tab key" New topic

regarding tab key

kumar mars
Ranch Hand

Joined: Jun 04, 2001
Posts: 34
hi guys,

i wrote an editor using swings. To provide input through console, i used the event handlers for keyboard events like
keypressed(), key released()etc.. i also provided some tool bar for opening a file, saving etc. i was able to define the action for almost all the keys on the keyboard, except for some keys. i was unable to get the control of tab key. when i am pressing a tab key, the control is movig on toll bar options only. the conrol is not getting int the frame, on which i used to display the text.
what i finally require is that how can i get the control of 'tab key' and how can i define some actions that are to be performed on pressing tab keys.
i will be thankful if any body can help me in this regard.
bye one and all,

It is sorta covered in the JavaRanch Style Guide.
subject: regarding tab key