ContainerListener

Name

ContainerListener

[Graphic: Figure from the text]

Description

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.

Interface Definition

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);
}

Interface Methods

componentAdded

public abstract void componentAdded (ContainerEvent e)

componentRemoved

public abstract void componentRemoved (ContainerEvent e)

See Also

ContainerAdapter, ContainerEvent, EventListener