ComponentAdapter is a class that implements the methods of ComponentListener with empty functions. It may be easier for you to extend ComponentAdapter, overriding only those methods you are interested in, than to implement ComponentListener and provide the empty functions yourself.
public abstract class java.awt.event.ComponentAdapter extends java.lang.Object implements java.awt.event.ComponentListener { // Instance Methods public void componentHidden (ComponentEvent e); public void componentMoved (ComponentEvent e); public void componentResized (ComponentEvent e); public void componentShown (ComponentEvent e); }
The event that has occurred.
Does nothing. Override this function to be notified when a component is hidden.
The event that has occurred.
Does nothing. Override this function to be notified when a component is moved.
The event that has occurred.
Does nothing. Override this function to be notified when a component is resized.
The event that has occurred.
Does nothing. Override this function to be notified when a component is shown.
Component, ComponentEvent, ComponentListener