Module java.desktop
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
-
InterfaceDescriptionThe listener interface for receiving action events.The listener interface for receiving adjustment events.The listener interface for receiving notification of events dispatched to objects that are instances of Component or MenuComponent or their subclasses.The listener interface for receiving component events.The listener interface for receiving container events.The listener interface for receiving keyboard focus events on a component.The listener interface for receiving ancestor moved and resized events.The listener interface for receiving hierarchy changed events.The listener interface for receiving input method events.The listener interface for receiving item events.The listener interface for receiving keyboard events (keystrokes).The listener interface for receiving "interesting" mouse events (press, release, click, enter, and exit) on a component.The listener interface for receiving mouse motion events on a component.The listener interface for receiving mouse wheel events on a component.The listener interface for receiving text events.The listener interface for receiving
WindowEvents
, includingWINDOW_GAINED_FOCUS
andWINDOW_LOST_FOCUS
events.The listener interface for receiving window events.The listener interface for receiving window state events. -
ClassDescriptionA semantic event which indicates that a component-defined action occurred.The adjustment event emitted by Adjustable objects like
Scrollbar
andScrollPane
.A class which extends theEventListenerProxy
specifically for adding anAWTEventListener
for a specific event mask.An abstract adapter class for receiving component events.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).An abstract adapter class for receiving container events.A low-level event which indicates that a container's contents changed because a component was added or removed.An abstract adapter class for receiving keyboard focus events.A low-level event which indicates that a Component has gained or lost the input focus.An abstract adapter class for receiving ancestor moved and resized events.An event which indicates a change to theComponent
hierarchy to whichComponent
belongs.The root event class for all component-level input events.Input method events contain information about text that is being composed using an input method.An event which executes therun()
method on aRunnable
when dispatched by the AWT event dispatcher thread.A semantic event which indicates that an item was selected or deselected.An abstract adapter class for receiving keyboard events.An event which indicates that a keystroke occurred in a component.An abstract adapter class for receiving mouse events.An event which indicates that a mouse action occurred in a component.An abstract adapter class for receiving mouse motion events.An event which indicates that the mouse wheel was rotated in a component.The component-level paint event.A semantic event which indicates that an object's text changed.An abstract adapter class for receiving window events.A low-level event that indicates that a window has changed its status. -
Enum ClassDescriptionThis enum represents the cause of a
FocusEvent
- the reason why it occurred.