• Post Reply Bookmark Topic Watch Topic
  • New Topic

Haw to create Image map in Java Swing  RSS feed

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

i have a IMAGE - WORLD MAP

i wont when i put a cursor on same CONTINENT to shou mi INFORMATION about this Continent haw to make this hapent

Pleace give me the idea

 
Author and ninkuma
Marshal
Posts: 66404
156
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mixo TODOR, please check your private messages for an important administrative matter.
 
Sheriff
Posts: 21204
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With a MouseListener you can find out where on a component the user clicked, using MouseEvent's getX(), getY() and getPoint() methods.
With a MouseMotionListener you can also find out where the mouse is when the user moves it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!