If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

mouse events

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).