I have a JTable which is bound to my EventTracker bean, essentially a wrapper around a list which I will use as append/clear only (i.e., a simple log). Problem is, when I add en
Assuming your data model derives from AbstractTableModel, you can update your model explicitly and fire the appropriate update method implemented in the abstract parent. Moreover, updates must occur on the EDT, typically using invokeLater()
. See also Listening for Data Changes and Firing Data Change Events.
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
// update model, which should fire the appropriate event
}
});