41 import javax.swing.plaf.ComponentUI;
42 import javax.swing.plaf.basic.BasicComboPopup;
43 import javax.swing.event.*;
44
45 import sun.awt.SunToolkit;
46 import sun.security.util.SecurityConstants;
47
48 import java.applet.Applet;
49
50 /**
51 * An implementation of a popup menu -- a small window that pops up
52 * and displays a series of choices. A <code>JPopupMenu</code> is used for the
53 * menu that appears when the user selects an item on the menu bar.
54 * It is also used for "pull-right" menu that appears when the
55 * selects a menu item that activates it. Finally, a <code>JPopupMenu</code>
56 * can also be used anywhere else you want a menu to appear. For
57 * example, when the user right-clicks in a specified area.
58 * <p>
59 * For information and examples of using popup menus, see
60 * <a
61 href="http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html">How to Use Menus</a>
62 * in <em>The Java Tutorial.</em>
63 * <p>
64 * <strong>Warning:</strong> Swing is not thread safe. For more
65 * information see <a
66 * href="package-summary.html#threading">Swing's Threading
67 * Policy</a>.
68 * <p>
69 * <strong>Warning:</strong>
70 * Serialized objects of this class will not be compatible with
71 * future Swing releases. The current serialization support is
72 * appropriate for short term storage or RMI between applications running
73 * the same version of Swing. As of 1.4, support for long term storage
74 * of all JavaBeans<sup><font size="-2">TM</font></sup>
75 * has been added to the <code>java.beans</code> package.
76 * Please see {@link java.beans.XMLEncoder}.
77 *
78 * @beaninfo
79 * attribute: isContainer false
80 * description: A small window that pops up and displays a series of choices.
81 *
|
41 import javax.swing.plaf.ComponentUI;
42 import javax.swing.plaf.basic.BasicComboPopup;
43 import javax.swing.event.*;
44
45 import sun.awt.SunToolkit;
46 import sun.security.util.SecurityConstants;
47
48 import java.applet.Applet;
49
50 /**
51 * An implementation of a popup menu -- a small window that pops up
52 * and displays a series of choices. A <code>JPopupMenu</code> is used for the
53 * menu that appears when the user selects an item on the menu bar.
54 * It is also used for "pull-right" menu that appears when the
55 * selects a menu item that activates it. Finally, a <code>JPopupMenu</code>
56 * can also be used anywhere else you want a menu to appear. For
57 * example, when the user right-clicks in a specified area.
58 * <p>
59 * For information and examples of using popup menus, see
60 * <a
61 href="http://docs.oracle.com/javase/tutorial/uiswing/components/menu.html">How to Use Menus</a>
62 * in <em>The Java Tutorial.</em>
63 * <p>
64 * <strong>Warning:</strong> Swing is not thread safe. For more
65 * information see <a
66 * href="package-summary.html#threading">Swing's Threading
67 * Policy</a>.
68 * <p>
69 * <strong>Warning:</strong>
70 * Serialized objects of this class will not be compatible with
71 * future Swing releases. The current serialization support is
72 * appropriate for short term storage or RMI between applications running
73 * the same version of Swing. As of 1.4, support for long term storage
74 * of all JavaBeans<sup><font size="-2">TM</font></sup>
75 * has been added to the <code>java.beans</code> package.
76 * Please see {@link java.beans.XMLEncoder}.
77 *
78 * @beaninfo
79 * attribute: isContainer false
80 * description: A small window that pops up and displays a series of choices.
81 *
|