I'm trying to get my delete button in my GUI to work but its not wanting to work the way it needs to. its suppose to remove my current selected ArrayList item from the list but all it does is move to the next item.

What am I doing wrong?

My product class:
Code:
import java.util.ArrayList;

public class product {
	
@SuppressWarnings("all")
    ArrayList <extendedDVD> product()
...