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);
}
The Component
upon which the PopupMenu will
be displayed.
x
The PopupMenu's
horizontal position on the component.
y
The PopupMenu's
vertical position on the component.
Description
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).