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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER