aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Handle shift+Tab key  event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Handle shift+Tab key  event" Watch "Handle shift+Tab key  event" New topic
Author

Handle shift+Tab key event

ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
Hi all,
This is Ramesh. I am handling key events in JTable using keyListener
I know keycode value of shift is 16, and tab is 09.
i can handling individually pressed TAB key and shift key but I am unable to handling when pressed both shift and tab keys at time (shift+Tab).

how can i handle this functionality(shift+Tab)

can any one please give me suggestion.

Thanks & Regards
Ramesh K
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Originally posted by ramesh kancherla:

how can i handle this functionality(shift+Tab)


KeyEvent#isShiftDown()


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
HI,
I am not getting this shift+tab key event

can any one please give sample code or procedure for find shift+tab

Thanks & Regards
Ramesh K
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Originally posted by ramesh kancherla:

can any one please give sample code or procedure for find shift+tab


Better yet, why dont you post your existing code so we can try and figure out whats going wrong? Dont forget to use the CODE tags
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Handle shift+Tab key event