T
Thorsten Kiefer
Hi,
I wrote a component (MyComp1 extends JComponent) which adds a MouseListener
to itself.
Then I wrote another component (MyComp2 extends MyComp1) which also adds a
MouseListener to itself.
The problem is that within an instance of MyComp2, the MouseListener added
by MyComp1 does
not receive MouseEvents anymore.
getListeners(MouseListener) also shows, that the instance of MyComp2 only
has 1 listener.
How can MyComp1 still receive MouseEvents ?
Best Regards
Thorsten
I wrote a component (MyComp1 extends JComponent) which adds a MouseListener
to itself.
Then I wrote another component (MyComp2 extends MyComp1) which also adds a
MouseListener to itself.
The problem is that within an instance of MyComp2, the MouseListener added
by MyComp1 does
not receive MouseEvents anymore.
getListeners(MouseListener) also shows, that the instance of MyComp2 only
has 1 listener.
How can MyComp1 still receive MouseEvents ?
Best Regards
Thorsten