| previous |
Detecting clicks on images I
Component (the
one the image is drawn in)MouseEvent
MouseEvent has methods getX()
and getY() that you can use to find the mouse positionComponent
(just like your image coordinates!)