aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTable listening for selected rows and columns by a keypress event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable listening for selected rows and columns by a keypress event" Watch "JTable listening for selected rows and columns by a keypress event" New topic
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: 19718
    
  20

Add a ListSelectionListener to the table's selection model.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable listening for selected rows and columns by a keypress event