• Post Reply Bookmark Topic Watch Topic
  • New Topic

Haw to create Image map in Java Swing

 
Michail Petrov
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

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
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.
 
Rob Spoor
Sheriff
Posts: 20820
68
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!