Hi everyone.
I want to display objects in a JList then remove an item when a button is clicked the item "bought" is bought, and the item is then removed from the list. I then want to pass the object as a variable to a method in a different class, which will remove it from an arraylist.
So far here's the relevant code:
I want to display objects in a JList then remove an item when a button is clicked the item "bought" is bought, and the item is then removed from the list. I then want to pass the object as a variable to a method in a different class, which will remove it from an arraylist.
So far here's the relevant code: