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.
Shows the popup menu at the x, y position relative to an origin component.
The origin component must be contained within the component
hierarchy of the popup menu's parent. Both the origin and the parent
must be showing on the screen for this method to be valid.
If this PopupMenu is being used as a Menu (i.e., it has a non-Component
parent), then you cannot call this method on the PopupMenu.
Parameters:
origin - the component which defines the coordinate space
Submit a bug or feature Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.