37 import java.util.Enumeration;
38
39 import java.io.Serializable;
40 import java.io.ObjectOutputStream;
41 import java.io.ObjectInputStream;
42 import java.io.IOException;
43
44 import javax.swing.event.*;
45 import javax.swing.border.Border;
46 import javax.swing.plaf.*;
47 import javax.accessibility.*;
48
49 /**
50 * An implementation of a menu bar. You add <code>JMenu</code> objects to the
51 * menu bar to construct a menu. When the user selects a <code>JMenu</code>
52 * object, its associated <code>JPopupMenu</code> is displayed, allowing the
53 * user to select one of the <code>JMenuItems</code> on it.
54 * <p>
55 * For information and examples of using menu bars see
56 * <a
57 href="http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html">How to Use Menus</a>,
58 * a section in <em>The Java Tutorial.</em>
59 * <p>
60 * <strong>Warning:</strong> Swing is not thread safe. For more
61 * information see <a
62 * href="package-summary.html#threading">Swing's Threading
63 * Policy</a>.
64 * <p>
65 * <strong>Warning:</strong>
66 * Serialized objects of this class will not be compatible with
67 * future Swing releases. The current serialization support is
68 * appropriate for short term storage or RMI between applications running
69 * the same version of Swing. As of 1.4, support for long term storage
70 * of all JavaBeans<sup><font size="-2">TM</font></sup>
71 * has been added to the <code>java.beans</code> package.
72 * Please see {@link java.beans.XMLEncoder}.
73 * <p>
74 * <strong>Warning:</strong>
75 * By default, pressing the Tab key does not transfer focus from a <code>
76 * JMenuBar</code> which is added to a container together with other Swing
77 * components, because the <code>focusTraversalKeysEnabled</code> property
|
37 import java.util.Enumeration;
38
39 import java.io.Serializable;
40 import java.io.ObjectOutputStream;
41 import java.io.ObjectInputStream;
42 import java.io.IOException;
43
44 import javax.swing.event.*;
45 import javax.swing.border.Border;
46 import javax.swing.plaf.*;
47 import javax.accessibility.*;
48
49 /**
50 * An implementation of a menu bar. You add <code>JMenu</code> objects to the
51 * menu bar to construct a menu. When the user selects a <code>JMenu</code>
52 * object, its associated <code>JPopupMenu</code> is displayed, allowing the
53 * user to select one of the <code>JMenuItems</code> on it.
54 * <p>
55 * For information and examples of using menu bars see
56 * <a
57 href="http://docs.oracle.com/javase/tutorial/uiswing/components/menu.html">How to Use Menus</a>,
58 * a section in <em>The Java Tutorial.</em>
59 * <p>
60 * <strong>Warning:</strong> Swing is not thread safe. For more
61 * information see <a
62 * href="package-summary.html#threading">Swing's Threading
63 * Policy</a>.
64 * <p>
65 * <strong>Warning:</strong>
66 * Serialized objects of this class will not be compatible with
67 * future Swing releases. The current serialization support is
68 * appropriate for short term storage or RMI between applications running
69 * the same version of Swing. As of 1.4, support for long term storage
70 * of all JavaBeans<sup><font size="-2">TM</font></sup>
71 * has been added to the <code>java.beans</code> package.
72 * Please see {@link java.beans.XMLEncoder}.
73 * <p>
74 * <strong>Warning:</strong>
75 * By default, pressing the Tab key does not transfer focus from a <code>
76 * JMenuBar</code> which is added to a container together with other Swing
77 * components, because the <code>focusTraversalKeysEnabled</code> property
|