The Component class has several methods that can be used to control its listeners: add..., get... and remove...
Use those methods as needed for you application. For example if you want to replace...