JPopupMenu

Palette category
Swing
Palette bean
JPopupMenu
Project
JFC class libraries
Package
com.sun.java.swing
Type
JPopupMenu

Use a JPopupMenu bean to provide a pop-up list of choices for window components. The user can display the menu by clicking a pop-up mouse button on a component. You can also add subclasses of AbstractAction to the free-form surface and add them to the menu in the menu get method.

Use a PopupMenu bean, rather than a JPopupMenu bean, if you want to use it with an AWT container. Although Swing and AWT beans can be mixed, it is inadvisable.


Related procedures
Adding a Menu or Tool Bar

Related references
Menu and Tool Bar Beans
Beans for Visual Composition