This class is a trivial implementation of ContainerListener; it provides empty bodies for each of the methods of that interface. When you are not interested in all of these methods, it is often easier to subclass ContainerAdapter than it is to implement ContainerListener from scratch.
public abstract class ContainerAdapter extends Object implements ContainerListener { // Default Constructor: public ContainerAdapter() // Public Instance Methods public void componentAdded(ContainerEvent e); // From ContainerListener public void componentRemoved(ContainerEvent e); // From ContainerListener }
Object->ContainerAdapter(ContainerListener(EventListener))