Search code examples
swingjgoodies

How to change values of panel on selecting a row in a table : jgoodies


I am using Jgoodies binding to bind the table with my data. What listener i should implement so that when a cell is selected the values in a panel are changed.

My model class of table extends AbstractTableAdapter which is an Jgoodies binding class.

thanks


Solution

  • The ListSelectionModel in your JTable (or suitable subclass) is what triggers events when the rows in a table are selected. You can implement ListSelectionListener and grab the selection model from the JTable and add yourself as a listener.