I have a JTable with an AbstractTableModel containing data in a ArrayList. The list is only a few elements, but the properties of the objects changes rapidly (maybe 100 times per second)
I guess it will give bad performance to fire changes all the time.
Is it okay to use a timer to trigger JTable update every 1 second?
Timer timer = new Timer(1000, new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
myModel.fireTableChanged(new TableModelEvent(myModel));
}
});
timer.start();