The Java programming language uses events to GUI forms. A source object can fire an event, like a mouse clicking a button, and one or more objects can have event listeners that react to the event.
To set events in a GUI form, do any of the following:
For more information about how to handle events in your program, including information about the Java event model, see the "Creating a GUI with JFC/Swing" tutorial at http://java.sun.com/docs/books/tutorial/uiswing.
Follow these links for information about managing component events in the IDE:
See Also | |
---|---|
Defining an Event Handler Removing an Event Handler Renaming an Event Handler Adding Multiple Handlers for One Event Setting Events With the Connection Wizard |