View Single Post
  #2 (permalink)  
Old 04-24-2008, 06:44 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,022
hardwired is on a distinguished road
Get the row selected in the first table and set that same row selected in the second table.
To get the selected row of the first table you can add a ListSelectionListener to the SelectionModel to get the leadSelectionIndex from within its valueChanged method or you can add a MouseListener to the table and use the rowAtPoint method to get the row index.
To change the selection of the second table you can use the changeSelection method.
Reply With Quote