30
31 import java.io.ObjectOutputStream;
32 import java.io.ObjectInputStream;
33 import java.io.IOException;
34
35
36 /**
37 * <code>JSeparator</code> provides a general purpose component for
38 * implementing divider lines - most commonly used as a divider
39 * between menu items that breaks them up into logical groupings.
40 * Instead of using <code>JSeparator</code> directly,
41 * you can use the <code>JMenu</code> or <code>JPopupMenu</code>
42 * <code>addSeparator</code> method to create and add a separator.
43 * <code>JSeparator</code>s may also be used elsewhere in a GUI
44 * wherever a visual divider is useful.
45 *
46 * <p>
47 *
48 * For more information and examples see
49 * <a
50 href="http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html">How to Use Menus</a>,
51 * a section in <em>The Java Tutorial.</em>
52 * <p>
53 * <strong>Warning:</strong> Swing is not thread safe. For more
54 * information see <a
55 * href="package-summary.html#threading">Swing's Threading
56 * Policy</a>.
57 * <p>
58 * <strong>Warning:</strong>
59 * Serialized objects of this class will not be compatible with
60 * future Swing releases. The current serialization support is
61 * appropriate for short term storage or RMI between applications running
62 * the same version of Swing. As of 1.4, support for long term storage
63 * of all JavaBeans<sup><font size="-2">TM</font></sup>
64 * has been added to the <code>java.beans</code> package.
65 * Please see {@link java.beans.XMLEncoder}.
66 *
67 * @beaninfo
68 * attribute: isContainer false
69 * description: A divider between menu items.
70 *
|
30
31 import java.io.ObjectOutputStream;
32 import java.io.ObjectInputStream;
33 import java.io.IOException;
34
35
36 /**
37 * <code>JSeparator</code> provides a general purpose component for
38 * implementing divider lines - most commonly used as a divider
39 * between menu items that breaks them up into logical groupings.
40 * Instead of using <code>JSeparator</code> directly,
41 * you can use the <code>JMenu</code> or <code>JPopupMenu</code>
42 * <code>addSeparator</code> method to create and add a separator.
43 * <code>JSeparator</code>s may also be used elsewhere in a GUI
44 * wherever a visual divider is useful.
45 *
46 * <p>
47 *
48 * For more information and examples see
49 * <a
50 href="http://docs.oracle.com/javase/tutorial/uiswing/components/menu.html">How to Use Menus</a>,
51 * a section in <em>The Java Tutorial.</em>
52 * <p>
53 * <strong>Warning:</strong> Swing is not thread safe. For more
54 * information see <a
55 * href="package-summary.html#threading">Swing's Threading
56 * Policy</a>.
57 * <p>
58 * <strong>Warning:</strong>
59 * Serialized objects of this class will not be compatible with
60 * future Swing releases. The current serialization support is
61 * appropriate for short term storage or RMI between applications running
62 * the same version of Swing. As of 1.4, support for long term storage
63 * of all JavaBeans<sup><font size="-2">TM</font></sup>
64 * has been added to the <code>java.beans</code> package.
65 * Please see {@link java.beans.XMLEncoder}.
66 *
67 * @beaninfo
68 * attribute: isContainer false
69 * description: A divider between menu items.
70 *
|