< prev index next >
src/java.desktop/share/classes/javax/swing/SizeRequirements.java
Print this page
@@ -56,23 +56,23 @@
* or height (and Y alignment)
* of a single component or a group of components:
*
* <blockquote>
* <dl>
- * <dt> <code>minimum</code>
+ * <dt> {@code minimum}
* <dd> The smallest reasonable width/height of the component
* or component group, in pixels.
*
- * <dt> <code>preferred</code>
+ * <dt> {@code preferred}
* <dd> The natural width/height of the component
* or component group, in pixels.
*
- * <dt> <code>maximum</code>
+ * <dt> {@code maximum}
* <dd> The largest reasonable width/height of the component
* or component group, in pixels.
*
- * <dt> <code>alignment</code>
+ * <dt> {@code alignment}
* <dd> The X/Y alignment of the component
* or component group.
* </dl>
* </blockquote>
* <p>
@@ -80,11 +80,11 @@
* 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™
- * has been added to the <code>java.beans</code> package.
+ * 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,29 +97,29 @@
@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>.
+ * 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</code>, this should be equal to either
- * <code>comp.getPreferredSize().width</code> or
- * <code>comp.getPreferredSize().height</code>.
+ * 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</code>, this should be equal to either
- * <code>comp.getMaximumSize().width</code> or
- * <code>comp.getMaximumSize().height</code>.
+ * 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 >