Hi, 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. Eg. 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. george.
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. Brian