JPopupMenu
- class javax.swing..JPopupMenu public class JPopupMenu extends JComponent implements Accessible , MenuElement Tree:java.lang.Object - java.awt.Component - java.awt.Container - javax.swing.JComponent - javax.swing.JPopupMenu An implementation of a Popup Menu -- a small window which pops up and displays a series of choices. A JPopupMenu is used for the menu that appears when the user selects an item on the menu bar. It is also used for "pull-right" menu that appears when the selects a menu item that activates it. Finally, a JPopupMenu can also be used anywhere else you want a menu to appear -- for example, when the user right-clicks in a specified area. JPopupMenu() - Constructor for class javax.swing.JPopupMenu public JPopupMenu () Create a JPopupMenu without an "invoker". JPopupMenu(String) - Constructor for class javax.swing.JPopupMenu public JPopupMenu (String label) Create a JPopupMenu with the specified title.Parameters: label - The string that a UI may use to display as a title for the popup menu. | ||||
Search Dictionary:
