You can assign event handlers to menu items just as you do for any other component.
To add an event handler to a menu item:
You can also add the actionPerformed event handler by actually selecting the item from the menu in the Form Editor window.
See also | |
---|---|
Using the Connection Wizard
Defining an Event Handler Creating a Menu Bar Changing the Current Menu Bar Adding a Menu to a Menu Bar Creating a Contextual Menu Adding a Menu Item |