Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt.event

Interface FocusListener

java.lang.Object
|
+--java.util.EventListener
   |
   +--java.awt.event.FocusListener

All Implemented Interfaces:

EventListener


public interface FocusListener

implements EventListener

This interface is for classes that wish to be notified of changes of keyboard focus for a component. To watch a subset of these events, use a FocusAdapter.

Since:Author:See Also:

Method Summary

voidfocusGained(java.awt.event.FocusEvent event)

This method is called when a component gains the keyboard focus.
voidfocusLost(java.awt.event.FocusEvent event)

This method is invoked when a component loses the keyboard focus.

Method Details

focusGained

public void focusGained(java.awt.event.FocusEvent event)

This method is called when a component gains the keyboard focus.

Parameters:


focusLost

public void focusLost(java.awt.event.FocusEvent event)

This method is invoked when a component loses the keyboard focus.

Parameters: