26.6.1 Technologies Overview
This app uses a ListView control to display a collection of book titles. Though you can individually add items to a ListView, in this app you’ll bind an ObservableList object to the ListView. If you make changes to an ObservableList, its observer (the ListView in this app) will automatically be notified of those changes. Package javafx.collections defines ObservableList and other observable collection interfaces. The package also contains class FXCollections, which provides static methods for creating and manipulating observable collections. You’ll also use a property listener to display the correct image when the user selects an item from the ListView—in this case, the property that changes is the selected item. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access