This interface defines the methods that an object must implement to "listen" for component events on AWT components. When a ComponentEvent occurs, an AWT component notifies its registered ComponentListener objects by invoking one of their methods.
An easy way to implement this interface is by subclassing the ComponentAdapter class.
public abstract interface ComponentListener extends EventListener { // Public Instance Methods public abstract void componentHidden(ComponentEvent e); public abstract void componentMoved(ComponentEvent e); public abstract void componentResized(ComponentEvent e); public abstract void componentShown(ComponentEvent e); }
AWTEventMulticaster, ComponentAdapter
AWTEventMulticaster.add(), AWTEventMulticaster.remove(), Component.addComponentListener(), Component.removeComponentListener()
AWTEventMulticaster.add(), AWTEventMulticaster.remove()