The ContainerAdapter class implements the methods of ContainerListener with empty functions. It may be easier for you to extend ContainerAdapter, overriding only those methods you are interested in, than to implement ContainerListener and provide the empty functions yourself.
public abstract class java.awt.event.ContainerAdapter extends java.lang.Object implements java.awt.event.ContainerListener { // Instance Methods public void componentAdded (ContainerEvent e); public void componentRemoved (ContainerEvent e); }
The event that has occurred.
Does nothing. Override this function to be notified when a component is added to a container.
The event that has occurred.
Does nothing. Override this function to be notified when a component is removed from a container.
ContainerEvent, ContainerListener
This HTML Help has been published using the chm2web software. |