Java AWT

Previous Chapter 21
java.awt.event Reference
Next
 

ComponentListener (New)

Name

ComponentListener (New)

[Graphic: Figure from the text]

Description

Objects that implement the ComponentListener interface can receive ComponentEvent 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.ComponentListener
   extends java.util.EventListener {
  // Instance Methods
  public abstract void componentHidden (ComponentEvent e);
  public abstract void componentMoved (ComponentEvent e);
  public abstract void componentResized (ComponentEvent e);
  public abstract void componentShown (ComponentEvent e);
}

Interface Methods

componentHidden

public abstract void componentHidden (ComponentEvent e)

Parameters

e

The component event that occurred.

Description

Notifies the ComponentListener that a component was hidden.

componentMoved

public abstract void componentMoved (ComponentEvent e)

Parameters

e

The component event that occurred.

Description

Notifies the ComponentListener that a component was moved.

componentResized

public abstract void componentResized (ComponentEvent e)

Parameters

e

The component event that occurred.

Description

Notifies the ComponentListener that a component was resized.

componentShown

public abstract void componentShown (ComponentEvent e)

Parameters

e

The component event that occurred.

Description

Notifies the ComponentListener that a component was shown.

See Also

AWTEventMulticaster, ComponentAdapter, ComponentEvent, EventListener


Previous Home Next
ComponentEvent (New) Book Index ContainerAdapter (New)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java