Java AWT

Previous Chapter 21
java.awt.event Reference
Next
 

FocusAdapter (New)

Name

FocusAdapter (New)

[Graphic: Figure from the text]

Description

The FocusAdapter class implements the methods of FocusListener with empty functions. It may be easier for you to extend FocusAdapter, overriding only those methods you are interested in, than to implement FocusListener and provide the empty functions yourself.

Class Definition

public abstract class java.awt.event.FocusAdapter
   extends java.lang.Object
   implements java.awt.event.FocusListener {
  // Instance Methods
  public void focusGained (FocusEvent e);
  public void focusLost (FocusEvent e);
}

Instance Methods

focusGained

public void focusGained (FocusEvent e)

Parameters

e

The event that has occurred.

Description

Does nothing. Override this function to be notified when a component gains focus.

focusLost

public void focusLost (FocusEvent e)

Parameters

e

The event that has occurred.

Description

Does nothing. Override this function to be notified when a component loses focus.

See Also

FocusEvent, FocusListener


Previous Home Next
ContainerListener (New) Book Index FocusEvent (New)

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