43 * <p>
44 * The <code>Box</code> class can create several kinds
45 * of invisible components
46 * that affect layout:
47 * glue, struts, and rigid areas.
48 * If all the components your <code>Box</code> contains
49 * have a fixed size,
50 * you might want to use a glue component
51 * (returned by <code>createGlue</code>)
52 * to control the components' positions.
53 * If you need a fixed amount of space between two components,
54 * try using a strut
55 * (<code>createHorizontalStrut</code> or <code>createVerticalStrut</code>).
56 * If you need an invisible component
57 * that always takes up the same amount of space,
58 * get it by invoking <code>createRigidArea</code>.
59 * <p>
60 * If you are implementing a <code>BoxLayout</code> you
61 * can find further information and examples in
62 * <a
63 href="http://docs.oracle.com/javase/tutorial/uiswing/layout/box.html">How to Use BoxLayout</a>,
64 * a section in <em>The Java Tutorial.</em>
65 * <p>
66 * <strong>Warning:</strong>
67 * Serialized objects of this class will not be compatible with
68 * future Swing releases. The current serialization support is
69 * appropriate for short term storage or RMI between applications running
70 * the same version of Swing. As of 1.4, support for long term storage
71 * of all JavaBeans™
72 * has been added to the <code>java.beans</code> package.
73 * Please see {@link java.beans.XMLEncoder}.
74 *
75 * @see BoxLayout
76 *
77 * @author Timothy Prinzing
78 */
79 @SuppressWarnings("serial")
80 public class Box extends JComponent implements Accessible {
81
82 /**
83 * Creates a <code>Box</code> that displays its components
|
43 * <p>
44 * The <code>Box</code> class can create several kinds
45 * of invisible components
46 * that affect layout:
47 * glue, struts, and rigid areas.
48 * If all the components your <code>Box</code> contains
49 * have a fixed size,
50 * you might want to use a glue component
51 * (returned by <code>createGlue</code>)
52 * to control the components' positions.
53 * If you need a fixed amount of space between two components,
54 * try using a strut
55 * (<code>createHorizontalStrut</code> or <code>createVerticalStrut</code>).
56 * If you need an invisible component
57 * that always takes up the same amount of space,
58 * get it by invoking <code>createRigidArea</code>.
59 * <p>
60 * If you are implementing a <code>BoxLayout</code> you
61 * can find further information and examples in
62 * <a
63 href="https://docs.oracle.com/javase/tutorial/uiswing/layout/box.html">How to Use BoxLayout</a>,
64 * a section in <em>The Java Tutorial.</em>
65 * <p>
66 * <strong>Warning:</strong>
67 * Serialized objects of this class will not be compatible with
68 * future Swing releases. The current serialization support is
69 * appropriate for short term storage or RMI between applications running
70 * the same version of Swing. As of 1.4, support for long term storage
71 * of all JavaBeans™
72 * has been added to the <code>java.beans</code> package.
73 * Please see {@link java.beans.XMLEncoder}.
74 *
75 * @see BoxLayout
76 *
77 * @author Timothy Prinzing
78 */
79 @SuppressWarnings("serial")
80 public class Box extends JComponent implements Accessible {
81
82 /**
83 * Creates a <code>Box</code> that displays its components
|