JavaFX provides Observable list. By definition, an observablelist is a list that allows listeners to track changes when they occur.
This is the second part of the observable tutorial series. Watch the comprehensive video about javafx observable here: • JavaFX Observables - Observe your data
This video talk about Using ObservableList with listeners and binding it with a listview. JavaFX ObservableList provides two interesting listener support.
void addListener(ListChangeListener) - ListChangeListener is an Interface that receives notifications of changes to an ObservableList.
It also provides InvalidationListener throrough Observable interface as addListener(InvalidationListener listener) - InvalidationListener which will be notified whenever the Observable becomes invalid.
Learn more about ObservableList from https://genuinecoder.com/javafx-obser...