Java in a Nutshell

Previous Chapter 20
The java.awt.event Package
Next
 

20.11 java.awt.event.FocusAdapter (JDK 1.1)

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

public abstract class FocusAdapter extends Object implements FocusListener {
    // Default Constructor: public FocusAdapter()
    // Public Instance Methods
            public void focusGained(FocusEvent e);  // From FocusListener
            public void focusLost(FocusEvent e);  // From FocusListener
}

Hierarchy:

Object->FocusAdapter(FocusListener(EventListener))


Previous Home Next
java.awt.event.ContainerListener (JDK 1.1) Book Index java.awt.event.FocusEvent (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.