Link to home
Start Free TrialLog in
Avatar of paredes_mynor
paredes_mynor

asked on

JPanel component's MouseListener don't work

I have a subclass jp_1 that extends JPanel and implements MouseListener.  This jp_1 has many JLabels.  Since it implements MouseListener, it has already declared the respective mouseEntered, mouseClicked, ....., etc methods.

Now, jp_1 is added to a BorderLayout type panel (jp_a), within the CENTER constraint.  My problem is that, it's supossed that the components (JLabels) of the jp_1 panel should listen to the mouse motion (entered, exited, clicked, etc.), but they don't!!!!  I tried to debug it, but it doesn't even reach the checkpoints that I put in the mouse related methods of jp_1.

Could you guys please help me with this?  Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of paredes_mynor
paredes_mynor

ASKER

Sorry, feel like stup........  Thanks.
Don't feel stupid, we all make mistakes sometimes :)

http://www.objects.com.au/staff/mick