aspose file tools*
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
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: 10451
    
    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!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i have a picture as a background and have coordinate on that picture using Java ?