This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Navigation Question

 
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: 20822
68
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!