Results 1 to 2 of 2
Thread: Swing Tables - urgent
- 04-15-2008, 05:15 AM #1
Member
- Join Date
- Apr 2008
- Posts
- 1
- Rep Power
- 0
- 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.
Similar Threads
-
Listing tables of a database
By Java Tip in forum Java TipReplies: 0Last Post: 02-12-2008, 09:30 AM -
caching the tables
By jayashree in forum JDBCReplies: 0Last Post: 01-30-2008, 06:43 AM -
how to sort 2 tables
By valery in forum AWT / SwingReplies: 1Last Post: 08-06-2007, 08:30 PM -
Updating into 2 tables in the DB
By yuchuang in forum New To JavaReplies: 2Last Post: 05-12-2007, 06:54 AM -
Tables In Ejb3
By Alan in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 05-10-2007, 04:36 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks