Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable listening for selected rows and columns by a keypress event

 
jhon max
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


In this sample code you can see that I can only display the selected row and columns (cells) by clicking a cell.

My question is what action/event should I implement for displaying the selected cell by pressing the 4 directional arrows?

please I need help with this.. thank you very much
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a ListSelectionListener to the table's selection model.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic