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™
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 *
82 * @author Georges Saab
83 * @author David Karlton
84 * @author Arnaud Weber
85 */
86 @SuppressWarnings("serial")
87 public class JPopupMenu extends JComponent implements Accessible,MenuElement {
88
89 /**
90 * @see #getUIClassID
91 * @see #readObject
92 */
93 private static final String uiClassID = "PopupMenuUI";
94
95 /**
96 * Key used in AppContext to determine if light way popups are the default.
97 */
98 private static final Object defaultLWPopupEnabledKey =
99 new StringBuffer("JPopupMenu.defaultLWPopupEnabledKey");
100
101 /** Bug#4425878-Property javax.swing.adjustPopupLocationToFit introduced */
102 static boolean popupPostionFixDisabled = false;
103
104 static {
|
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™
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 *
82 * @author Georges Saab
83 * @author David Karlton
84 * @author Arnaud Weber
85 * @since 1.2
86 */
87 @SuppressWarnings("serial")
88 public class JPopupMenu extends JComponent implements Accessible,MenuElement {
89
90 /**
91 * @see #getUIClassID
92 * @see #readObject
93 */
94 private static final String uiClassID = "PopupMenuUI";
95
96 /**
97 * Key used in AppContext to determine if light way popups are the default.
98 */
99 private static final Object defaultLWPopupEnabledKey =
100 new StringBuffer("JPopupMenu.defaultLWPopupEnabledKey");
101
102 /** Bug#4425878-Property javax.swing.adjustPopupLocationToFit introduced */
103 static boolean popupPostionFixDisabled = false;
104
105 static {
|