Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Navigation Question  RSS feed

 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
By default, when a JTable has the keyboard focus, the TAB key moves the cell selection to the next cell while SHIFT+TAB moves the cell selection to the previous cell.
I am trying to locate the code that handles this default navigational behavior, but without success.
I tried looking for a key listener in JTable but did not find one.
Then I checked for any InputMap objects associated with JTable and also found none.
Please someone tell me where I can find the code that handles cell selection navigation in JTable.

Thanks,
Avi.
 
Rob Spoor
Sheriff
Posts: 20895
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try looking in the look&feel. Package javax.swing.plaf and its sub-packages are the place to look.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob,
Thank you.
Found the following:

Cheers,
Avi.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!