• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.......
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic