Saturday, April 15, 2017

JavaFx | How to populate a ListView with an arrayList

It is very simple: you have to pass your list (Collection.List) to an ObservableArrayList (FXCollection) like this. ObservableList anyList = FXCollections.observableArrayList(yourList)
transform an ArrayList into observableArrayList

No comments:

Post a Comment