W3cubDocs

/OpenJDK 21

Package java.awt.event

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
Class Description
ActionEvent
A semantic event which indicates that a component-defined action occurred.
ActionListener
The listener interface for receiving action events.
AdjustmentEvent
The adjustment event emitted by Adjustable objects like Scrollbar and ScrollPane.
AdjustmentListener
The listener interface for receiving adjustment events.
AWTEventListener
The listener interface for receiving notification of events dispatched to objects that are instances of Component or MenuComponent or their subclasses.
AWTEventListenerProxy
A class which extends the EventListenerProxy specifically for adding an AWTEventListener for a specific event mask.
ComponentAdapter
An abstract adapter class for receiving component events.
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).
ComponentListener
The listener interface for receiving component events.
ContainerAdapter
An abstract adapter class for receiving container events.
ContainerEvent
A low-level event which indicates that a container's contents changed because a component was added or removed.
ContainerListener
The listener interface for receiving container events.
FocusAdapter
An abstract adapter class for receiving keyboard focus events.
FocusEvent
A low-level event which indicates that a Component has gained or lost the input focus.
FocusEvent.Cause
This enum represents the cause of a FocusEvent- the reason why it occurred.
FocusListener
The listener interface for receiving keyboard focus events on a component.
HierarchyBoundsAdapter
An abstract adapter class for receiving ancestor moved and resized events.
HierarchyBoundsListener
The listener interface for receiving ancestor moved and resized events.
HierarchyEvent
An event which indicates a change to the Component hierarchy to which Component belongs.
HierarchyListener
The listener interface for receiving hierarchy changed events.
InputEvent
The root event class for all component-level input events.
InputMethodEvent
Input method events contain information about text that is being composed using an input method.
InputMethodListener
The listener interface for receiving input method events.
InvocationEvent
An event which executes the run() method on a Runnable when dispatched by the AWT event dispatcher thread.
ItemEvent
A semantic event which indicates that an item was selected or deselected.
ItemListener
The listener interface for receiving item events.
KeyAdapter
An abstract adapter class for receiving keyboard events.
KeyEvent
An event which indicates that a keystroke occurred in a component.
KeyListener
The listener interface for receiving keyboard events (keystrokes).
MouseAdapter
An abstract adapter class for receiving mouse events.
MouseEvent
An event which indicates that a mouse action occurred in a component.
MouseListener
The listener interface for receiving "interesting" mouse events (press, release, click, enter, and exit) on a component.
MouseMotionAdapter
An abstract adapter class for receiving mouse motion events.
MouseMotionListener
The listener interface for receiving mouse motion events on a component.
MouseWheelEvent
An event which indicates that the mouse wheel was rotated in a component.
MouseWheelListener
The listener interface for receiving mouse wheel events on a component.
PaintEvent
The component-level paint event.
TextEvent
A semantic event which indicates that an object's text changed.
TextListener
The listener interface for receiving text events.
WindowAdapter
An abstract adapter class for receiving window events.
WindowEvent
A low-level event that indicates that a window has changed its status.
WindowFocusListener
The listener interface for receiving WindowEvents, including WINDOW_GAINED_FOCUS and WINDOW_LOST_FOCUS events.
WindowListener
The listener interface for receiving window events.
WindowStateListener
The listener interface for receiving window state events.

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/event/package-summary.html