my dog learned polymorphism*
The moose likes Java in General and the fly likes How can i have a picture as a background and have coordinate on that picture using Java ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How can i have a picture as a background and have coordinate on that picture using Java ?" Watch "How can i have a picture as a background and have coordinate on that picture using Java ?" New topic
Author

How can i have a picture as a background and have coordinate on that picture using Java ?

motress zlting
Ranch Hand

Joined: Jan 10, 2010
Posts: 55
How can i have a picture as a background and have coordinate on that picture using Java ?
i have done the browse and display picture function in my laptop, but now i don know how can i set a coordinate for
that picture ? However, that coordinate should be invisible to user , so when mouse move over the picture ,it shows the coordinate .
That is really difficult for me as i'm newbie in java .... Someone please help me.......
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170
    
    8

http://faq.javaranch.com/java/BackgroundImageOnJPanel

You will need a MouseMotionListener. On the mouseMoved you can get the mouse coordinates and display them as a tooltip.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
 
subject: How can i have a picture as a background and have coordinate on that picture using Java ?
 
Similar Threads
mouse click event for 3D coordinates in java
set picture as background of JFRAME and JPanel
Please help me, image as background and have coordinate on it
printing the string
Partially transparent backgrounds ?