d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Netbeans Layered Panel And Eventlistener > The Mouse Clicked Is Only Activated In 1
Add Reply New Topic New Poll
Member
Posts: 4,478
Joined: Feb 10 2010
Gold: 1,806.00
Jun 11 2013 12:48pm
Have a netbeans Gui project where I use layered panel.

There are 2 labels on top of each other. A big image and a small image.

The mouse clicked method only responds in the big label. Later when the smaller image is drawn on top of the larger one. The mouse clicked method is only called once (for the big label).

Can someone explain why that is and what I should do ?

Thanks
Member
Posts: 4,478
Joined: Feb 10 2010
Gold: 1,806.00
Jun 11 2013 02:39pm
Have figured it out.

I use the layeredpanel.setLayer.

This allows u to put new label on top.

Go Back To Programming & Development Topic List
Add Reply New Topic New Poll