Handling events with the visual editor
The Java Beans view helps you to work with events for your visual application.
See the following topics for more information about handling and working with events in the visual editor for Java.
Events, listeners, and adapter classes
JavaBeans events are signalled when an activity occurs, such as a button being pressed or a window being closed. The visual editor for Java shows events in the Java Beans view, and you can use this view to add and remove events.Viewing events for a component
The Java Beans view shows all of the events set on the components in your visual class.Adding events to a component
You can add an event to a component in the Design view or Java Beans view.Deleting events from a component
You can use the Java Beans view to delete an event that you added to a component.Viewing the source for an event
When you select an event in the Java Beans view, the Source view shows the relevant lines in the Java code.
Parent topic
Developing Java classes with the visual editor