Results 1 to 2 of 2
Thread: Swing Tables - urgent
- 04-15-2008, 05:15 AM #1Member
- Join Date
- Apr 2008
- Rep Power
- 04-24-2008, 05:44 PM #2
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.
- By Java Tip in forum Java TipReplies: 0Last Post: 02-12-2008, 09:30 AM
- By jayashree in forum JDBCReplies: 0Last Post: 01-30-2008, 06:43 AM
- By valery in forum AWT / SwingReplies: 1Last Post: 08-06-2007, 08:30 PM
- By yuchuang in forum New To JavaReplies: 2Last Post: 05-12-2007, 06:54 AM
- By Alan in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 05-10-2007, 04:36 PM