Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet with images overlayed and each image with a menu.

 
george franciscus
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am in development of a JApplet to display images in overlayed on each other like
A big image overlayed by some other small images and on and on..
And each image on mouse over it should show a menu with some private options for that image..
How could I do that..
Presently I have extended a Jpanel and implementing mouseListenr like this..

The above one I am using like this..

But what is happening is last added image only I am able to see and the mouse events are occuring for only last added image..
Can somebody help me in this..
Thanks a lot in advance..
 
saager mhatre
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your ImagePanel Class seems pretty atomic in that it doesn't seem to go beyond itself. What I now need to know is how you add ImagePanel's to the container that will ultimately display the overlayed images and what LayoutManager it uses. I think that's where the problem lies!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic