Forums Register Login

multiple objects listening to same event

+Pie Number of slices to send: Send
Is there a reason I can't get multiple AWT objects to listen for the same event? E.g., a mouse event in a panel which itself is part of a panel. I can get either panel alone to be notified of the event, but I can't get them both to be notified. If contained panel implements MouseListener then the panel containing it doesn't get notified. If I remove MouseListener from the contained panel, then the containing panel gets notified. Can't I have multiple objects listening for events on the same object? Or does that create synchronization problems?
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 931 times.
Similar Threads
No methods executing on component
Database design question
Dealing with aggregates in DDD
clicking on icons does not work
add listener to combo drop down list
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:35:54.