Y
Yin99
If ClassA has ActionListeners on JButtons, and ClassB instantiates
ClassA, can ClassB "discover" and remove all ActionListeners in ClassA?
(ClassA does not provide/pass any references to the Actionlisteners to
ClassB)
If you create a Component[] comps = this.getComponents(), and loop
through this calling getListeners, looks like you can discover
ActionListeners but this proposes several questions- 1) Will
this.getComponents() only work if called from ClassA (one with
actionlisteners, because of this reference?) 2) If this works to
discover actionlisteners, then how to remove?
Yin99
ClassA, can ClassB "discover" and remove all ActionListeners in ClassA?
(ClassA does not provide/pass any references to the Actionlisteners to
ClassB)
If you create a Component[] comps = this.getComponents(), and loop
through this calling getListeners, looks like you can discover
ActionListeners but this proposes several questions- 1) Will
this.getComponents() only work if called from ClassA (one with
actionlisteners, because of this reference?) 2) If this works to
discover actionlisteners, then how to remove?
Yin99