java.awt.event

Interface ContainerListener

public interface ContainerListener extends EventListener

This interface is for classes that wish to listen for all events from container objects. This is normally not necessary since the AWT system listens for and processes these events. To watch a subset of these events, use a ContainerAdapter.

Since: 1.1

See Also: ContainerAdapter ContainerEvent

UNKNOWN: updated to 1.4

Method Summary
voidcomponentAdded(ContainerEvent event)
This method is called when a component is added to the container.
voidcomponentRemoved(ContainerEvent event)
This method is called when a component is removed from the container.

Method Detail

componentAdded

public void componentAdded(ContainerEvent event)
This method is called when a component is added to the container.

Parameters: event the ContainerEvent indicating component addition

componentRemoved

public void componentRemoved(ContainerEvent event)
This method is called when a component is removed from the container.

Parameters: event the ContainerEvent indicating component removal