java.lang.Object | +--java.awt.MenuComponent | +--java.awt.MenuItem | +--java.awt.Menu | +--java.awt.PopupMenu
Safe:
PopupMenu()
AccessibleContext
getAccessibleContext()
AccessibleContext associated with this
PopupMenu.
void
show(Component origin,
int x,
int y)
add, add, addSeparator, countItems, countItemsImpl, deleteShortcut, getItem, getItemCount, getItemImpl, getShortcutMenuItem, handleShortcut, insert, insert, insertSeparator, isTearOff, paramString, remove, remove, removeAll, removeNotify, shortcuts
addActionListener, deleteShortcut, disable, disableEvents, doMenuEvent, enable, enable, enableEvents, eventEnabled, getActionCommand, getActionListeners, getLabel, getListeners, getShortcut, isEnabled, processActionEvent, processEvent, removeActionListener, setActionCommand, setEnabled, setLabel, setShortcut
dispatchEvent, dispatchEventImpl, getAccessibleIndexInParent, getAccessibleStateSet, getFont_NoClientCode, getFont, getName, getParent_NoClientCode, getParent, getPeer, getTreeLock, postEvent, setFont, setName, toString
private static final String base
static int nameCounter
private static final long serialVersionUID
public PopupMenu() throws HeadlessException
java.awt.GraphicsEnvironment#isHeadlesspublic PopupMenu(String label) throws HeadlessException
label - a non-null string specifying
the popup menu's labeljava.awt.GraphicsEnvironment#isHeadlessString constructComponentName()
MenuComponent.
Called by getName when the name is null.
constructComponentName in class MenuMenuComponentpublic void addNotify()
public void show(Component origin, int x, int y)
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.
origin - the component which defines the coordinate spacex - the x coordinate position to popup the menuy - the y coordinate position to popup the menupublic AccessibleContext getAccessibleContext()
AccessibleContext associated with this
PopupMenu.
getAccessibleContext in interface AccessiblegetAccessibleContext in class MenuAccessibleContext of this
PopupMenu