I am working on a code and I would like to know how I can update the elements of a tableview
.
That is, I have my code with a editar
method that edits the selected components of that table. For example, I have an element that is called prueba
and contains a int
with value 6. I edit it and call it pruebaedit
, change the value of int
to 5 and edit that element in ObservableList
.
So far so good, but when I give it to save I edit the list but the old data is still shown in the table.
I would like to update the table and every time you edit an element, update the values of this element in the table and show them updated.