JavaFX: Update of ListView if an element of ObservableList changes
Posted
by
user1828169
on Stack Overflow
See other posts from Stack Overflow
or by user1828169
Published on 2012-12-16T22:33:00Z
Indexed on
2012/12/16
23:03 UTC
Read the original article
Hit count: 371
I would like to display a list of persons (coded in POJOS, and containing a name and surname property) using a JavaFX ListView control. I created the ListView and added the list of persons as an ObservableList. Everything works fine if I delete or add a new person to the ObservableList, but changes in the POJO do not trigger an update of the ListView. I have to remove and add the modified POJO from the ObservableList to trigger the update of the ListView. Is there any possibility to display changes in POJOS without the workaround described above?
© Stack Overflow or respective owner