Communicating Events Created by Java Components
Users talk to a bean through event objects created by interacting with the bean's graphic user interface. JavaBeans graphic user interfaces are typically composed of components from the AWT or Swing. In this section, you learn how to register event listeners with AWT or Swing components. Afterwards, you'll use your new knowledge to write beans that respond to user interactions.
Registering Event Listeners
Each Java AWT and Swing component can create event objects in response to all sorts of user interactions. For instance, a java.awt.Button object can produce java.awt.event. ActionEvent, java.awt.event.ComponentEvent, java.awt.event.FocusEvent, java.awt.event.KeyEvent, java.awt.event.MouseEvent, ...
Get JavaBeans Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.