APIdia Launch Partner
Top Description Interfaces Classes
module java.desktop

Package java.awt.event


Provides interfaces and classes for dealing with different types of events fired by AWT components. See the java.awt.AWTEvent class for details on the AWT event model. Events are fired by event sources. An event listener registers with an event source to receive notifications about the events of a particular type. This package defines events and event listeners, as well as event listener adapters, which are convenience classes to make easier the process of writing event listeners.
Since
1.1

Interface Summary

Modifier and TypeInterface and Description
public interface
ActionListener

The listener interface for receiving action events.

public interface
AdjustmentListener

The listener interface for receiving adjustment events.

public interface
AWTEventListener

The listener interface for receiving notification of events dispatched to objects that are instances of Component or MenuComponent or their subclasses.

public interface
ComponentListener

The listener interface for receiving component events.

public interface
ContainerListener

The listener interface for receiving container events.

public interface
FocusListener

The listener interface for receiving keyboard focus events on a component.

public interface
HierarchyBoundsListener

The listener interface for receiving ancestor moved and resized events.

public interface
HierarchyListener

The listener interface for receiving hierarchy changed events.

public interface
InputMethodListener

The listener interface for receiving input method events.

public interface
ItemListener

The listener interface for receiving item events.

public interface
KeyListener

The listener interface for receiving keyboard events (keystrokes).

public interface
MouseListener

The listener interface for receiving "interesting" mouse events (press, release, click, enter, and exit) on a component.

public interface
MouseMotionListener

The listener interface for receiving mouse motion events on a component.

public interface
MouseWheelListener

The listener interface for receiving mouse wheel events on a component.

public interface
TextListener

The listener interface for receiving text events.

public interface
WindowFocusListener

The listener interface for receiving WindowEvents, including WINDOW_GAINED_FOCUS and WINDOW_LOST_FOCUS events.

public interface
WindowListener

The listener interface for receiving window events.

public interface
WindowStateListener

The listener interface for receiving window state events.

Class Summary

Modifier and TypeClass and Description
public class
ActionEvent

A semantic event which indicates that a component-defined action occurred.

public class
AdjustmentEvent

The adjustment event emitted by Adjustable objects like java.awt.Scrollbar and java.awt.ScrollPane.

public class
AWTEventListenerProxy

A class which extends the EventListenerProxy specifically for adding an AWTEventListener for a specific event mask.

public abstract class
ComponentAdapter

An abstract adapter class for receiving component events.

public class
ComponentEvent

A low-level event which indicates that a component moved, changed size, or changed visibility (also, the root class for the other component-level events).

public abstract class
ContainerAdapter

An abstract adapter class for receiving container events.

public class
ContainerEvent

A low-level event which indicates that a container's contents changed because a component was added or removed.

public abstract class
FocusAdapter

An abstract adapter class for receiving keyboard focus events.

public class
FocusEvent

A low-level event which indicates that a Component has gained or lost the input focus.

public abstract class
HierarchyBoundsAdapter

An abstract adapter class for receiving ancestor moved and resized events.

public class
HierarchyEvent

An event which indicates a change to the Component hierarchy to which Component belongs.

public abstract class
InputEvent

The root event class for all component-level input events.

public class
InputMethodEvent

Input method events contain information about text that is being composed using an input method.

public class
InvocationEvent

An event which executes the run() method on a Runnable when dispatched by the AWT event dispatcher thread.

public class
ItemEvent

A semantic event which indicates that an item was selected or deselected.

public abstract class
KeyAdapter

An abstract adapter class for receiving keyboard events.

public class
KeyEvent

An event which indicates that a keystroke occurred in a component.

public abstract class
MouseAdapter

An abstract adapter class for receiving mouse events.

public class
MouseEvent

An event which indicates that a mouse action occurred in a component.

public abstract class
MouseMotionAdapter

An abstract adapter class for receiving mouse motion events.

public class
MouseWheelEvent

An event which indicates that the mouse wheel was rotated in a component.

pack-priv class
public class
PaintEvent

The component-level paint event.

public class
TextEvent

A semantic event which indicates that an object's text changed.

public abstract class
WindowAdapter

An abstract adapter class for receiving window events.

public class
WindowEvent

A low-level event that indicates that a window has changed its status.