Java java.awt PopupMenu fields, constructors, methods, implement or subclass

Example usage for Java java.awt PopupMenu fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt PopupMenu.

The text is from its open source code.

Constructor

PopupMenu()
Creates a new popup menu with an empty name.
PopupMenu(String label)
Creates a new popup menu with the specified name.

Method

MenuItemadd(MenuItem mi)
Adds the specified menu item to this menu.
voidaddActionListener(ActionListener l)
Adds the specified action listener to receive action events from this menu item.
voidaddSeparator()
Adds a separator line, or a hypen, to the menu at the current position.
voidsetFont(Font f)
Sets the font to be used for this menu component to the specified font.
voidshow(Component origin, int x, int y)
Shows the popup menu at the x, y position relative to an origin component.