[Chapter 20] 20.5 java.awt.event.ComponentAdapter (JDK 1.1)
Author: David Flanagan
Date: Thu Jul 31 16:13:47 1997

#

| Chapter 20 The java.awt.event Package |

## 20.5 java.awt.event.ComponentAdapter (JDK 1.1)

###

This class is a trivial implementation of `ComponentListener`; 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 `ComponentAdapter` than it is to implement `ComponentListener` from scratch.

    public abstract class ComponentAdapter extends Object implements ComponentListener {
        // Default Constructor: public ComponentAdapter()
        // Public Instance Methods
                public void componentHidden(ComponentEvent e);  // From ComponentListener
                public void componentMoved(ComponentEvent e);  // From ComponentListener
                public void componentResized(ComponentEvent e);  // From ComponentListener
                public void componentShown(ComponentEvent e);  // From ComponentListener
    }

### Hierarchy:

`Object->ComponentAdapter(ComponentListener(EventListener))`

java.awt.event.AdjustmentListener (JDK 1.1) |  | java.awt.event.ComponentEvent (JDK 1.1)