A PopupMenu is a menu that can be popped up on a Component.
public class java.awt.PopupMenu extends java.awt.Menu { // Constructors public PopupMenu(); public PopupMenu (String label); // Instance Methods public synchronized void addNotify(); public void show (Component origin, int x, int y); }
Constructs a PopupMenu object.
Text that appears on Menu.
Constructs a PopupMenu object with the given label.
Menu.addNotify()
Creates a PopupMenu peer.
The Component upon which the PopupMenu will be displayed.
The PopupMenu's horizontal position on the component.
The PopupMenu's vertical position on the component.
Shows the menu on the given Component. The origin specified must be contained in the hierarchy of the PopupMenu's parent component, which is determined by the call to Component.add(PopupMenu).