java.awt
public class PopupMenu extends Menu
| Nested Class Summary | |
|---|---|
| protected class | PopupMenu.AccessibleAWTPopupMenu |
| Constructor Summary | |
|---|---|
| PopupMenu()
Initializes a new instance of PopupMenu.
| |
| PopupMenu(String label)
Initializes a new instance of PopupMenu with the specified
label.
| |
| Method Summary | |
|---|---|
| void | addNotify()
Creates this object's native peer. |
| AccessibleContext | getAccessibleContext()
Gets the AccessibleContext associated with this PopupMenu.
|
| void | show(Component component, int x, int y)
Displays this popup menu at the specified coordinates relative to
the specified component.
|
PopupMenu.
Throws: HeadlessException If GraphicsEnvironment.isHeadless() returns true.
PopupMenu with the specified
label.
Parameters: label The label for this popup menu.
Throws: HeadlessException If GraphicsEnvironment.isHeadless() returns true.
PopupMenu.
The context is created, if necessary.
Returns: the associated context
Parameters: component The component to which the display coordinates are relative. x The X coordinate of the menu. y The Y coordinate of the menu.