java.awt.event
Interface ComponentListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
AWTEventMulticaster, BasicInternalFrameUI.ComponentHandler, BasicSliderUI.ComponentHandler, BasicTreeUI.ComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, ComponentAdapter, JViewport.ViewListener

public interface ComponentListener
extends EventListener

This interface is for classes that receive all events from a component. Normally it is not necessary to process these events since the AWT handles them internally, taking all appropriate actions. To watch a subset of these events, use a ComponentAdapter.

Since:
1.1
See Also:
ComponentAdapter, ComponentEvent

Method Summary
 void componentHidden(ComponentEvent event)
          This method is called when the component is hidden.
 void componentMoved(ComponentEvent event)
          This method is called when the component is moved.
 void componentResized(ComponentEvent event)
          This method is called when the component is resized.
 void componentShown(ComponentEvent event)
          This method is called when the component is made visible.
 

Method Detail

componentResized

void componentResized(ComponentEvent event)
This method is called when the component is resized.

Parameters:
event - the ComponentEvent indicating the resize

componentMoved

void componentMoved(ComponentEvent event)
This method is called when the component is moved.

Parameters:
event - the ComponentEvent indicating the move

componentShown

void componentShown(ComponentEvent event)
This method is called when the component is made visible.

Parameters:
event - the ComponentEvent indicating the visibility

componentHidden

void componentHidden(ComponentEvent event)
This method is called when the component is hidden.

Parameters:
event - the ComponentEvent indicating the visibility