javafx listview selected item code example Example: listview get selected java ListView.getSelectionModel().getSelectedItem();