thank you very much -1, Firstly already gave the method to update individual cells, there is no need to repeat suggestions.
Secondly, the add Row() method with not since Table Model does not support that method.
Pay attention to the section on listening for table data changes If you come up with your own table model, you need to be sure to fully implement all overridden methods, particularly , and make sure you keep track of your row count properly.
One of the most common mistakes involves forgetting to increment your row count after adding data and thinking that the table model is not receiving data. Forgive me if I wasn't clearer before, but the problem is that I want to update the whole dataset.
You need to have your JTable use a Table Model such as an Abstract Table Model or Default Table Model and then change the data in the table model when desired.
You should only be storing text in the model and then let a renderer render the text.
Is that a reason to recreate entire table model or I should stick with the Value(..) ?
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).according to the answer provided in your previous question, then there is no relationship with the data in the model to the external source.You need to manually reload the data from the external source, create a new according to the answer provided in your previous question, then there is no relationship with the data in the model to the external source.The Swing tutorial on JTables explains all of this, and if you haven't gone through it, you owe it to yourself to do so.Good evening I have a JTable that I built with a Table Model how to update the elements of the table, because when I do table = new JTable (new Table Prog (element Tab)) I create another table above the original table and it is very ugly So for example how to update element of table in a loop at each iteration as "element Tab" changes?