Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+7 votes

I have been Googling and have not found a working method to find the selected index in a listview, so I can remove the right element from the ArrayList. Everything else in my project is working up until deleting and being able to edit selected movies. Please and thank you in advance for any assistance.

asked in CSC 305 Fall 2024 by (282 points)

1 Answer

+4 votes

I used movieListView.getSelectionModel().getSelectedIndex() to get the index of the selected item. You can then put that index into the remove function of your movieList. Hope that helps!

answered by (2.1k points)
...