Re: More than 1 MouseListener
- From: Thorsten Kiefer <thorstenkiefer@xxxxxx>
- Date: Mon, 31 Mar 2008 14:19:14 +0200
Thorsten Kiefer wrote:
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 must correct myself getListeners(MouseListener.class) shows 2 Listeners.
But the first one still doesnt receive events.
.
- Follow-Ups:
- Re: More than 1 MouseListener
- From: Alex . From . Ohio . Java
- Re: More than 1 MouseListener
- References:
- More than 1 MouseListener
- From: Thorsten Kiefer
- More than 1 MouseListener
- Prev by Date: More than 1 MouseListener
- Next by Date: manupulating a xml-file
- Previous by thread: More than 1 MouseListener
- Next by thread: Re: More than 1 MouseListener
- Index(es):
Relevant Pages
|