Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Handle shift+Tab key event

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by ramesh kancherla:

how can i handle this functionality(shift+Tab)



KeyEvent#isShiftDown()
 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
    Bookmark Topic Watch Topic
  • New Topic