how to store selected items in listview java code example Example: listview get selected java ListView.getSelectionModel().getSelectedItem();