FocusListener

Name

FocusListener

[Graphic: Figure from the text]

Description

Objects that implement the FocusListener interface can receive FocusEvent objects. Listeners must first register themselves with objects that produce events. When events occur, they are then automatically propagated to all registered listeners.

Interface Definition

public abstract interface java.awt.event.FocusListener extends java.util.EventListener {
 // Instance Methods public abstract void focusGained (FocusEvent e);
public abstract void focusLost (FocusEvent e);
}

Interface Methods

focusGained

public abstract void focusGained (FocusEvent e)

focusLost

public abstract void focusLost (FocusEvent e)

See Also

AWTEventMulticaster, EventListener, FocusAdapter, FocusEvent