I tried to enable multiple selection mode to ListView. However, it still seems to be in single selection mode when I test it and I'm not sure what went wrong. Help? Thank you. Here is my code:
ObservableList<String> alphabets
= FXCollections.observableArrayList("Aa", "Bb", "Cc",
"Dd", "Ee");
ListView<String> AlphabetsLv = new ListView<String>(alphabets);
AlphabetsLv.setPrefSize(80, 80);
AlphabetsLv.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);