This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Component Please??  RSS feed

 
george franciscus
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Brian Pipa
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.
Brian
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!