JavaFX ObservableList

preview_player
Показать описание
JavaFX provides Observable list. By definition, an observablelist is a list that allows listeners to track changes when they occur.

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.

Рекомендации по теме
Комментарии
Автор

You have singlehandedly saved me from throwing my computer across the lawn.

trevosh
Автор

Aside the obvious hep with the observable objects, it was of great use to me that you mentioned those 2 problems that I was facing, too: "not on this thread" which I had found the solution for on stackoverflow: the same one as yours with "Platform.runlater(...)" but i did not know how to use the lambda with it; u helped me with that. The second problem would have been that with "effectively final" which had a rather obvious solution; nonetheless, it did not come to me, so u once again helped. Thank you very much, kind sir! And good luck with all the goals that you set for yourself! God bless!

munteanionut
Автор

Thanks a lot for this video. I find fantastically done and really useful. I understood a lot from watching it. It is really precious like a lot of your other videos that explains JavaFX features.

Gordolone
Автор

Thank you for making this video, I have found this to be very helpful. :-)
and YES I have liked the video (was already a subscriber) and hit the bell icon for notification ! :-)

maazmuhammad
Автор

Hello, I have a question; I can convert arraylist to Observable list

antonyescorcia
Автор

Please make video create jar using intelij for javafx gradle project with dependencies

yunazra
Автор

QUICK HINT: a lot better to watch at 1.5x speed

aidenyang
Автор

please get a new microphone, this is awful

fanboybrother