Example usage for Java java.awt PopupMenu fields, constructors, methods, implement or subclass
The text is from its open source code.
PopupMenu() Creates a new popup menu with an empty name. | |
PopupMenu(String label) Creates a new popup menu with the specified name. |
MenuItem | add(MenuItem mi) Adds the specified menu item to this menu. |
void | addActionListener(ActionListener l) Adds the specified action listener to receive action events from this menu item. |
void | addSeparator() Adds a separator line, or a hypen, to the menu at the current position. |
void | setFont(Font f) Sets the font to be used for this menu component to the specified font. |
void | show(Component origin, int x, int y) Shows the popup menu at the x, y position relative to an origin component. |