>>>>> "Harish" == Harish Prabhu <[EMAIL PROTECTED]> writes:
Harish> Hi all,
Harish> I added listeners to a particular component using annonymous classes.
Harish> Now i want to remove all such listeners that i have added . is there
Harish> any way to do this ??
Harish> Thanks ,
Harish> harish
You might consider two different approaches for this. One responder
pointed out the "getListeners()" method, which is a nice
general-purpose approach. However, to be truly general, you might
have to exhaustively call "getListeners()" for every listener class
you might conceivably add to a component (or all components).
A more pragmatic approach might be to simply create your anonymous
listeners and store them as instance variables in the class. Then,
create a particular method which is executed on "cleanup", which will
manually remove those listeners from the component.
--
===================================================================
David M. Karr ; w:(425)487-8312 ; TCSI & Best Consulting
[EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing