Adding an Event Handler to a Menu Item
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:
-
Select the menu item in the Component Inspector, and then select the desired event
properties on the Events tab or choose them from the menu item's contextual menu.
You can also add the
actionPerformed
event handler by actually
selecting the item from the menu in the Form window.
-
Use the Connection wizard by clicking the connection icon and then clicking
(in the Component Inspector) the connection source and target components.
Legal Notices