Module java.desktop

Class InputEvent

java.lang.Object
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
KeyEvent, MouseEvent

public abstract sealed class InputEvent extends ComponentEvent permits KeyEvent, MouseEvent
The root event class for all component-level input events. Input events are delivered to listeners before they are processed normally by the source where they originated. This allows listeners and component subclasses to "consume" the event so that the source will not process them in their default manner. For example, consuming mousePressed events on a Button component will prevent the Button from being activated.
Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for InputEventSealed class hierarchy graph for InputEvent
Since:
1.1
See Also: