How to invoke a popup or main menu item?
The recommended way how to invoke popup or main menu is through an Action or ActionNoBlock instance. Jellytools include bunch of predefined actions. They can be found in package org.netbeans.jellytools.actions and they are descendants either of Action for non blocking operations or of ActionNoBlock for operations which may block further execution by a modal dialog showing. An action can be performed in “main menu”, “popup”, “shortcut” or “API” modes. By default it is performed in the first available mode because not every action is defined for all four modes.