how to select an item in listview java code example Example: listview get selected java ListView.getSelectionModel().getSelectedItem();