Java in a Nutshell

Previous Chapter 20
The java.awt.event Package
Next
 

20.8 java.awt.event.ContainerAdapter (JDK 1.1)

This class is a trivial implementation of ContainerListener; it provides empty bodies for each of the methods of that interface. When you are not interested in all of these methods, it is often easier to subclass ContainerAdapter than it is to implement ContainerListener from scratch.

public abstract class ContainerAdapter extends Object implements ContainerListener {
    // Default Constructor: public ContainerAdapter()
    // Public Instance Methods
            public void componentAdded(ContainerEvent e);  // From ContainerListener
            public void componentRemoved(ContainerEvent e);  // From ContainerListener
}

Hierarchy:

Object->ContainerAdapter(ContainerListener(EventListener))


Previous Home Next
java.awt.event.ComponentListener (JDK 1.1) Book Index java.awt.event.ContainerEvent (JDK 1.1)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.