Handle Events Through a User-Defined Method

Wire Manager Tutorial Contents Save the Interface

When the user selects a name from the list and clicks the Remove button, the name is removed from the list. This requires a user-defined method to handle the event triggered when the user clicks the button.

  1. In Visual Builder, double-click the Remove button to open the Object Manager.

  2. In the Resources card, scroll to the Event Handlers section.

    Notes:

  3. In the actionPerformed field, type removeName.

    When you save the interface, Cosmo Code creates a placeholder for this method in the .java file.

  4. Close the Object Manager.
    Wire Manager Tutorial Contents Save the Interface

    Guide to the Cosmo Code Development Environment
    12-96*111