52 *
53 * <p>
54 * With most look and feels,
55 * the user can drag out a tool bar into a separate window
56 * (unless the <code>floatable</code> property is set to <code>false</code>).
57 * For drag-out to work correctly, it is recommended that you add
58 * <code>JToolBar</code> instances to one of the four "sides" of a
59 * container whose layout manager is a <code>BorderLayout</code>,
60 * and do not add children to any of the other four "sides".
61 * <p>
62 * <strong>Warning:</strong> Swing is not thread safe. For more
63 * information see <a
64 * href="package-summary.html#threading">Swing's Threading
65 * Policy</a>.
66 * <p>
67 * <strong>Warning:</strong>
68 * Serialized objects of this class will not be compatible with
69 * future Swing releases. The current serialization support is
70 * appropriate for short term storage or RMI between applications running
71 * the same version of Swing. As of 1.4, support for long term storage
72 * of all JavaBeans™
73 * has been added to the <code>java.beans</code> package.
74 * Please see {@link java.beans.XMLEncoder}.
75 *
76 * @author Georges Saab
77 * @author Jeff Shapiro
78 * @see Action
79 * @since 1.2
80 */
81 @JavaBean(defaultProperty = "UI", description = "A component which displays commonly used controls or Actions.")
82 @SwingContainer
83 @SuppressWarnings("serial") // Same-version serialization only
84 public class JToolBar extends JComponent implements SwingConstants, Accessible
85 {
86 /**
87 * @see #getUIClassID
88 * @see #readObject
89 */
90 private static final String uiClassID = "ToolBarUI";
91
92 private boolean paintBorder = true;
|
52 *
53 * <p>
54 * With most look and feels,
55 * the user can drag out a tool bar into a separate window
56 * (unless the <code>floatable</code> property is set to <code>false</code>).
57 * For drag-out to work correctly, it is recommended that you add
58 * <code>JToolBar</code> instances to one of the four "sides" of a
59 * container whose layout manager is a <code>BorderLayout</code>,
60 * and do not add children to any of the other four "sides".
61 * <p>
62 * <strong>Warning:</strong> Swing is not thread safe. For more
63 * information see <a
64 * href="package-summary.html#threading">Swing's Threading
65 * Policy</a>.
66 * <p>
67 * <strong>Warning:</strong>
68 * Serialized objects of this class will not be compatible with
69 * future Swing releases. The current serialization support is
70 * appropriate for short term storage or RMI between applications running
71 * the same version of Swing. As of 1.4, support for long term storage
72 * of all JavaBeans
73 * has been added to the <code>java.beans</code> package.
74 * Please see {@link java.beans.XMLEncoder}.
75 *
76 * @author Georges Saab
77 * @author Jeff Shapiro
78 * @see Action
79 * @since 1.2
80 */
81 @JavaBean(defaultProperty = "UI", description = "A component which displays commonly used controls or Actions.")
82 @SwingContainer
83 @SuppressWarnings("serial") // Same-version serialization only
84 public class JToolBar extends JComponent implements SwingConstants, Accessible
85 {
86 /**
87 * @see #getUIClassID
88 * @see #readObject
89 */
90 private static final String uiClassID = "ToolBarUI";
91
92 private boolean paintBorder = true;
|