• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

Component Please??

Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am in development of a component.
It should have following features.
1) It should take a image (Image) and and a popup menu as input.
2) It should display the image and when user scrolls on that image user should get the assigned popup for that image.
3) The image can be overlayed by other same component.
I have a layout of car image with out doors ..etc components in it.
So first I will add car. and some menu to the car image.

I have door image I will overlay door image with correct(x,y) on the car image with some other popup menu. when user scroll over door image the popup belongs to door should come..
When user scroll over car image the popup belongs to car should come..
I have done some thing like this..

Useing as below.

But the one displays last added image and events only firing for last added image..
Can somebody help me in this..
Thanks a lot in advance..
with reg.
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm unclear as to what exactly you are trying to do, but take a look at the Swingset2 demo that comes with JDK1.4+. CLick on the second to last button to run the tooltip demo. If you point at different parts of the picture you get different popup tooltips. You can view the source code to see how they did it. That might help you.
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
professionally read, modify and write PDF files from Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!