• Post Reply Bookmark Topic Watch Topic
  • New Topic

multiple objects listening to same event  RSS feed

Gary McClelland
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!