I have two JTable
components, I want that if i click on any row of first table then, the elements having same ID in table 2 also, changes their background color.
I searched these while R&D
I have two JTable
components, I want that if i click on any row of first table then, the elements having same ID in table 2 also, changes their background color.
I searched these while R&D
Add a ListSelectionListener to the first table. It will generate an event whenever the selection of a row is changed
When the event is generated you clear the selection of the second table and then iterate through all the rows of the table finding rows with the same id. Then you can invoke the changeSelection(...)
method on that table.