This week's book giveaway is in the iOS forum.
We're giving away four copies of Classic Computer Science Problems in Swift and have David Kopec on-line!
See this thread for details.
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • 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: 66607
161
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: 21305
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!