In the new event model, event handling has been more generalized: each class can declare which events it wants to handle by creating an ActionListener for those events.
-
Required more generalized event model for JavaBeans.
-
Essential for user to create own basic (lightweight) components.
-
More detailed system of events: e.g. user can create own button component which enables events MOUSE_PRESSED, MOUSE_RELEASED, MOUSE_ENTERED, and MOUSE_EXITED and may make the button change appearance (or take other action) on each of these events.
|