JPopupMenu
You can attach a JPopupMenu to any of the following components:JLabel , all kinds of buttons, JTextArea , JEditorPane , JTextPane , JList , JTable and JTree .
Because a popup menu is invisible (unless it is triggered), it has no visual representation in the design grid. To keep track of all popup menus, press <M>, this displays an icon and a tooltip for every popup menu as long as the key is pressed. To attach a popup menu to a component, select 'Attach Popup Menu' from the component's context menu or drag the popup menu icon from the components palette onto the desired component. | ||||||||||||
To edit a popup menu, select 'Edit Popup Menu Items' from the popup invoker's context menu, this will open the Popup editor which is similar to the Menu editor. To copy, cut or remove a popup menu, select the appropriate command either from the popup invoker's context menu or from the context menu of the popup component in the project view. In the 'Edit Popup Menu Properties' dialog you can edit the following properties:
| ||||||||||||