Answer the question
In order to leave comments, you need to log in
How to properly update data in JTable after changing it in source?
I have a program. Some set of data is stored in an ArrayList object. I inherited the AbstractTableModel table model and use it to pass data to the table. The model receives a reference to an ArrayList object. How to properly update the table after adding data to the ArrayList object? Otherwise, you have to hang myTable.updateUI () everywhere in the interface.
Answer the question
In order to leave comments, you need to log in
It is more correct to update the table through the model.
Take a closer look at the protected members of the AbstractTableModel.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question