The Artima Developer Community
Sponsored Link

Legacy Design Forum
Event Generator Idiom



This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


How to remove the anonymous event lsitener (novice question :)

Posted by Adam Fordyce on January 16, 2001 at 6:19 AM

Hi there

I was just wondering how the Person listener is removed from the list of event listeners when a Person leaves the room? The listener is added as an anonymous inner class so there's no physical handle to the object for use in the removeTelephoneListener method.

Am I just being stupid here (probably)?

Thanks in advance,



Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us