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
Gets the AccessibleContext associated with this PopupMenu.
For popup menus, the AccessibleContext takes the form of an
AccessibleAWTPopupMenu.
A new AccessibleAWTPopupMenu instance is created if necessary.
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.