< prev index next >

src/java.desktop/share/classes/javax/swing/SizeRequirements.java

Print this page

        

*** 56,78 **** * or height (and Y alignment) * of a single component or a group of components: * * <blockquote> * <dl> ! * <dt> <code>minimum</code> * <dd> The smallest reasonable width/height of the component * or component group, in pixels. * ! * <dt> <code>preferred</code> * <dd> The natural width/height of the component * or component group, in pixels. * ! * <dt> <code>maximum</code> * <dd> The largest reasonable width/height of the component * or component group, in pixels. * ! * <dt> <code>alignment</code> * <dd> The X/Y alignment of the component * or component group. * </dl> * </blockquote> * <p> --- 56,78 ---- * or height (and Y alignment) * of a single component or a group of components: * * <blockquote> * <dl> ! * <dt> {@code minimum} * <dd> The smallest reasonable width/height of the component * or component group, in pixels. * ! * <dt> {@code preferred} * <dd> The natural width/height of the component * or component group, in pixels. * ! * <dt> {@code maximum} * <dd> The largest reasonable width/height of the component * or component group, in pixels. * ! * <dt> {@code alignment} * <dd> The X/Y alignment of the component * or component group. * </dl> * </blockquote> * <p>
*** 80,90 **** * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. * * @see Component#getMinimumSize * @see Component#getPreferredSize * @see Component#getMaximumSize --- 80,90 ---- * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see Component#getMinimumSize * @see Component#getPreferredSize * @see Component#getMaximumSize
*** 97,125 **** @SuppressWarnings("serial") // Same-version serialization only public class SizeRequirements implements Serializable { /** * The minimum size required. ! * For a component <code>comp</code>, this should be equal to either ! * <code>comp.getMinimumSize().width</code> or ! * <code>comp.getMinimumSize().height</code>. */ public int minimum; /** * The preferred (natural) size. ! * For a component <code>comp</code>, this should be equal to either ! * <code>comp.getPreferredSize().width</code> or ! * <code>comp.getPreferredSize().height</code>. */ public int preferred; /** * The maximum size allowed. ! * For a component <code>comp</code>, this should be equal to either ! * <code>comp.getMaximumSize().width</code> or ! * <code>comp.getMaximumSize().height</code>. */ public int maximum; /** * The alignment, specified as a value between 0.0 and 1.0, --- 97,125 ---- @SuppressWarnings("serial") // Same-version serialization only public class SizeRequirements implements Serializable { /** * The minimum size required. ! * For a component {@code comp}, this should be equal to either ! * {@code comp.getMinimumSize().width} or ! * {@code comp.getMinimumSize().height}. */ public int minimum; /** * The preferred (natural) size. ! * For a component {@code comp}, this should be equal to either ! * {@code comp.getPreferredSize().width} or ! * {@code comp.getPreferredSize().height}. */ public int preferred; /** * The maximum size allowed. ! * For a component {@code comp}, this should be equal to either ! * {@code comp.getMaximumSize().width} or ! * {@code comp.getMaximumSize().height}. */ public int maximum; /** * The alignment, specified as a value between 0.0 and 1.0,
< prev index next >