Gets or sets the popup menu's label.
Gets or sets the popup menu's label. Different look and feels may choose to display or not display this.
Attaches the menu to a given component and makes it visible at the relative coordinates.
Attaches the menu to a given component and makes it visible at the relative coordinates.
the component to which the menu is logically attached
the horizontal coordinate of the top-left corner of the menu, relative to the invoker's position
the vertical coordinate of the top-left corner of the menu, relative to the invoker's position
A popup menu component.
Example usage:
The component publishes
PopupMenuCanceled
,PopupMenuWillBecomeInvisible
andPopupMenuWillBecomeVisible
events which can be used to determine when the menu is opened or closed.javax.swing.JPopupMenu