I have created a JDialog which displays two different tables. When the user selects a row from the first table, the content of the second table should update accordingly and display some new data. Can someone give me some guidelines in order to create such table behaviour? Thanks!
I have created a JDialog which displays two different tables. When the user selects
Share
ListSelectionListenerand add it as a listener to the first table’s selection modelAbstractTableModel) whenvalueChanged(..)of the second table’s table model is called.Or you could add an anonymous class doing the forwarding of the corresponding event. Something like: