I am trying to write an event handler for a group of canvas objects in a JPanel.
Unlike the ActionEvent, I don't seem to be returned the instance of the class,
just the class itself. This is all very well, however I am trying to use
a class to create a set of clickable images, and hence need to find out which
instance variable I am looking at. Is this done with the instanceof keyword
(proabably in a different manner to what I am doing at present).