Technical Support
Discussion Forum
Online Training
Read About Java
Java In-Depth
Product Discounts
Membership Information

Java Cup Logo

JDC Home Page


Top
Back
Next
Online Training
shadowSearchFAQFeedback

Event Convenience Methods

The method Component.handleEvent calls a number of convenience methods that you can override to handle the associated event:

  • action. A Component was triggered.
  • mouseEnter. Mouse has moved over the Component.
  • mouseExit. Mouse has left the Component.
  • mouseMove. Mouse has moved without mouse button down.
  • mouseDown. Mouse button pushed down.
  • mouseDrag. Mouse moved with mouse button down.
  • mouseUp. Mouse button released.
  • keyDown. Key was pressed down.
  • keyUp. Key was released.
  • gotFocus. Component has the input focus.
  • lostFocus. Component lost the input focus.

See the API specification of Event and Component for complete method specifications. Also, for a more in-depth study, see Event handling.