Module java.desktop
Package java.awt

Class PopupMenu

java.lang.Object
All Implemented Interfaces:
MenuContainer, Serializable, Accessible

public class PopupMenu extends Menu
A class that implements a menu which can be dynamically popped up at a specified position within a component.

As the inheritance hierarchy implies, a PopupMenu can be used anywhere a Menu can be used. However, if you use a PopupMenu like a Menu (e.g., you add it to a MenuBar), then you cannot call show on that PopupMenu.

See Also: