how to get elements of listView javafx code example Example: listview get selected java ListView.getSelectionModel().getSelectedItem();