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.
version: 1.41 05/05/07 author: Amy Fowler
Inner Class :protected class AccessibleAWTPopupMenu extends AccessibleAWTMenu
show(Component origin, int x, int y) 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.
Creates a new popup menu with the specified name.
Parameters: label - a non-null string specifyingthe popup menu's label exception: HeadlessException - if GraphicsEnvironment.isHeadless()returns true. See Also:java.awt.GraphicsEnvironment.isHeadless
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 Parameters: x - the x coordinate position to popup the menu Parameters: y - the y coordinate position to popup the menu exception: NullPointerException - if the parent is null exception: IllegalArgumentException - if this PopupMenuhas a non-Component parent exception: IllegalArgumentException - if the origin is not in theparent's heirarchy exception: RuntimeException - if the parent is not showing on screen