Game Development with Java 8
Pages
Home
Download Game
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment