aspose file tools
The moose likes Swing / AWT / SWT / JFace and the fly likes multiple objects listening to same event Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "multiple objects listening to same event" Watch "multiple objects listening to same event" New topic
Author

multiple objects listening to same event

Gary McClelland
Greenhorn

Joined: Jan 04, 2001
Posts: 4
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?
 
 
subject: multiple objects listening to same event
 
Threads others viewed
Dealing with aggregates in DDD
clicking on icons does not work
No methods executing on component
Database design question
add listener to combo drop down list
developer file tools