Menu item events
You can use the same mechanism for assigning event handlers to menu items as with any other component. For menu items, you can also add the
actionPerformed
event handler by actually selecting the item from the menu in the Form Editor window.To add an event handler to a menu item:
- Select the component in the Component Inspector and either use the popup menu or event properties to attach the event handler.
- Use the Connection Wizard by clicking on the Connect icon and then (in the Component Inspector) clicking on the connection source and target. See Using the Connection Wizard.
Contents | Prev | Next | Index |