Hello, I was wondering if someone could explain how I can drag and drop an object if its part of an arrayList. I know how to look if the mouse is inside or how to remove it but for a drag and drop function I really have no idea.
On way to do this is to have a boolean in you object to keep track if it is selected or not.
Then you move the object that are selected to your mouse position.
Okay I think I understood it a bit better, but how would I do this if I have two classes of Objects that inherit from the same base Class? And they are all part of one ArrayList.