
 
![[Graphic: Figure from the text]](figs/contai3.gif) 
Objects that implement the ContainerListener interface can receive ContainerEvent objects. Listeners must first register themselves with objects that produce events. When events occur, they are then automatically propagated to all registered listeners.
public abstract interface java.awt.event.ContainerListener
   extends java.util.EventListener {
  // Instance Methods
  public abstract void componentAdded (ContainerEvent e);
  public abstract void componentRemoved (ContainerEvent e);
}
The event that occurred.
Notifies the ContainerListener that a component has been added to the container.
The event that occurred.
Notifies the ContainerListener that a component has been removed from the container.
ContainerAdapter, ContainerEvent, EventListener
| This HTML Help has been published using the chm2web software. |