| Author |
JTable listening for selected rows and columns by a keypress event
|
jhon max
Ranch Hand
Joined: Jan 06, 2010
Posts: 45
|
|
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
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Add a ListSelectionListener to the table's selection model.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: JTable listening for selected rows and columns by a keypress event
|
|
|