Selecting the Source Event

The first step in the Connection wizard is to select the source event and the name of the handler method to be generated by that event.

When you select an event that doesn't yet have an event handler attached to it, the default event handler name is generated in the Method Name field. You can use the default method name or type in a new name.

In the list of events, an event is followed by a handler name if an event handler is already attached to that event. For example, if the event is listed as MousePressed [jButton1MousePressed], the jButton1MousePressed event handler is already attached to the MousePressed event.

If multiple event handlers are already attached to an event, the event is followed by [...]. You can then select from the multiple event handlers in the Method Name field.

You can replace an existing event handler by selecting that handler in the Method Name field. A confirmation dialog is displayed when you click Next, asking if you are sure you want to replace the existing event handler code.

See also
Using the Connection Wizard
Specifying the Target Operation

Managing Component Events

Legal Notices