This class is a trivial implementation of ComponentListener; 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 ComponentAdapter than it is to implement ComponentListener from scratch.
public abstract class ComponentAdapter extends Object implements ComponentListener { // Default Constructor: public ComponentAdapter() // Public Instance Methods public void componentHidden(ComponentEvent e); // From ComponentListener public void componentMoved(ComponentEvent e); // From ComponentListener public void componentResized(ComponentEvent e); // From ComponentListener public void componentShown(ComponentEvent e); // From ComponentListener }
Object->ComponentAdapter(ComponentListener(EventListener))