| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.awt.event | Provides interfaces and classes for dealing with different
types of events fired by AWT components. | 
| java.awt.im | Provides classes and interfaces for the input method framework. | 
| java.awt.im.spi | Provides interfaces that enable the development of input methods
that can be used with any Java runtime environment. | 
| javax.swing.event | Provides for events fired by Swing components. | 
| javax.swing.plaf | Provides one interface and many abstract classes that
Swing uses to provide its pluggable look-and-feel capabilities. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected AWTEvent | Component. coalesceEvents(AWTEvent existingEvent,
              AWTEvent newEvent)Potentially coalesce an event being posted with an existing
 event. | |
| static AWTEvent | EventQueue. getCurrentEvent()Returns the the event currently being dispatched by the
  EventQueueassociated with the calling thread. | |
| AWTEvent | EventQueue. getNextEvent()Removes an event from the  EventQueueand
 returns it. | |
| AWTEvent | EventQueue. peekEvent()Returns the first event on the  EventQueuewithout removing it. | |
| AWTEvent | EventQueue. peekEvent(int id)Returns the first event with the specified id, if any. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected AWTEvent | Component. coalesceEvents(AWTEvent existingEvent,
              AWTEvent newEvent)Potentially coalesce an event being posted with an existing
 event. | |
| boolean | DefaultKeyboardFocusManager. dispatchEvent(AWTEvent e)This method is called by the AWT event dispatcher requesting that the
 current KeyboardFocusManager dispatch the specified event on its behalf. | |
| abstract boolean | KeyboardFocusManager. dispatchEvent(AWTEvent e)This method is called by the AWT event dispatcher requesting that the
 current KeyboardFocusManager dispatch the specified event on its behalf. | |
| protected void | EventQueue. dispatchEvent(AWTEvent event)Dispatches an event. | |
| void | MenuComponent. dispatchEvent(AWTEvent e)Delivers an event to this component or one of its sub components. | |
| void | Component. dispatchEvent(AWTEvent e)Dispatches an event to this component or one of its sub components. | |
| void | EventQueue. postEvent(AWTEvent theEvent)Posts a 1.1-style event to the  EventQueue. | |
| protected void | CheckboxMenuItem. processEvent(AWTEvent e)Processes events on this check box menu item. | |
| protected void | Choice. processEvent(AWTEvent e)Processes events on this choice. | |
| protected void | Scrollbar. processEvent(AWTEvent e)Processes events on this scroll bar. | |
| protected void | Checkbox. processEvent(AWTEvent e)Processes events on this check box. | |
| protected void | List. processEvent(AWTEvent e)Processes events on this scrolling list. | |
| protected void | TextComponent. processEvent(AWTEvent e)Processes events on this text component. | |
| protected void | TextField. processEvent(AWTEvent e)Processes events on this text field. | |
| protected void | Button. processEvent(AWTEvent e)Processes events on this button. | |
| protected void | MenuItem. processEvent(AWTEvent e)Processes events on this menu item. | |
| protected void | MenuComponent. processEvent(AWTEvent e)Processes events occurring on this menu component. | |
| protected void | Component. processEvent(AWTEvent e)Processes events occurring on this component. | |
| protected void | Container. processEvent(AWTEvent e)Processes events on this container. | |
| protected void | Window. processEvent(AWTEvent e)Processes events on this window. | |
| void | KeyboardFocusManager. redispatchEvent(Component target,
               AWTEvent e)Redispatches an AWTEvent in such a way that the AWT event dispatcher
 will not recursively request that the KeyboardFocusManager, or any
 installed KeyEventDispatchers, dispatch the event again. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | ActionEventA semantic event which indicates that a component-defined action occurred. | |
| class  | AdjustmentEventThe adjustment event emitted by Adjustable objects like
  ScrollbarandScrollPane. | |
| class  | ComponentEventA low-level event which indicates that a component moved, changed
 size, or changed visibility (also, the root class for the other
 component-level events). | |
| class  | ContainerEventA low-level event which indicates that a container's contents
 changed because a component was added or removed. | |
| class  | FocusEventA low-level event which indicates that a Component has gained or lost the
 input focus. | |
| class  | HierarchyEventAn event which indicates a change to the  Componenthierarchy to whichComponentbelongs. | |
| class  | InputEventThe root event class for all component-level input events. | |
| class  | InputMethodEventInput method events contain information about text that is being
 composed using an input method. | |
| class  | InvocationEventAn event which executes the  run()method on aRunnable
 when dispatched by the AWT event dispatcher thread. | |
| class  | ItemEventA semantic event which indicates that an item was selected or deselected. | |
| class  | KeyEventAn event which indicates that a keystroke occurred in a component. | |
| class  | MouseEventAn event which indicates that a mouse action occurred in a component. | |
| class  | MouseWheelEventAn event which indicates that the mouse wheel was rotated in a component. | |
| class  | PaintEventThe component-level paint event. | |
| class  | TextEventA semantic event which indicates that an object's text changed. | |
| class  | WindowEventA low-level event that indicates that a window has changed its status. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | AWTEventListenerProxy. eventDispatched(AWTEvent event)Forwards the AWT event to the listener delegate. | |
| void | AWTEventListener. eventDispatched(AWTEvent event)Invoked when an event is dispatched in the AWT. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | InputContext. dispatchEvent(AWTEvent event)Dispatches an event to the active input method. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | InputMethod. dispatchEvent(AWTEvent event)Dispatches the event to the input method. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | AncestorEventAn event reported to a child component that originated from an
 ancestor in the component hierarchy. | |
| class  | InternalFrameEventAn  AWTEventthat adds support forJInternalFrameobjects as the event source. | |
| class  | MenuDragMouseEventMenuDragMouseEvent is used to notify interested parties that
 the menu element has received a MouseEvent forwarded to it
 under drag conditions. | |
| class  | MenuKeyEventMenuKeyEvent is used to notify interested parties that
 the menu element has received a KeyEvent forwarded to it
 in a menu tree. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | LayerUI. eventDispatched(AWTEvent e,
               JLayer<? extends V> l)Processes  AWTEvents forJLayerand all its descendants to thisLayerUIinstance. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.