This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
1) You know the Rectangle which displays the image
2) MouseEvent has the capability to provide you the x and y co-ordinates of the mouse click
3) Rectangle can tell if if a particular Point is inside/outside that rectangle