• Post Reply Bookmark Topic Watch Topic
  • New Topic

Click on different part of Image.  RSS feed

 
P Jain
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I have a image, when I clicks on some parts of image a messagebox should shows the coordinates of that part.

I have that Image in Panel as ImageIcon.

How can I do that.
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you thought about using a MouseListener with the mouseClicked() method?

Rachel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!