Separate objects in an ArrayList

Am I missing something, it looks like you have no Tegenstander class to initialize. Your code should work providing that you first create a class.

also you will need a mechanism that tracks the mouse location, checks if its pressed, then checks the location again on release.

A similar question has been asked recently about drag and drop.