< prev index next >

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

Print this page

        

@@ -34,12 +34,12 @@
 import java.awt.Dimension;
 import java.awt.Insets;
 import java.io.Serializable;
 
 /**
- * The default layout manager for <code>JViewport</code>.
- * <code>ViewportLayout</code> defines
+ * The default layout manager for {@code JViewport}.
+ * {@code ViewportLayout} defines
  * a policy for layout that should be useful for most applications.
  * The viewport makes its view the same size as the viewport,
  * however it will not make the view smaller than its minimum size.
  * As the viewport grows the view is kept bottom justified until
  * the entire view is visible, subsequently the view is kept top

@@ -49,11 +49,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&trade;
- * 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}.
  *
  * @author Hans Muller
  * @since 1.2
  */

@@ -80,11 +80,11 @@
 
     /**
      * Returns the preferred dimensions for this layout given the components
      * in the specified target container.
      * @param parent the component which needs to be laid out
-     * @return a <code>Dimension</code> object containing the
+     * @return a {@code Dimension} object containing the
      *          preferred dimensions
      * @see #minimumLayoutSize
      */
     public Dimension preferredLayoutSize(Container parent) {
         Component view = ((JViewport)parent).getView();

@@ -103,11 +103,11 @@
     /**
      * Returns the minimum dimensions needed to layout the components
      * contained in the specified target container.
      *
      * @param parent the component which needs to be laid out
-     * @return a <code>Dimension</code> object containing the minimum
+     * @return a {@code Dimension} object containing the minimum
      *          dimensions
      * @see #preferredLayoutSize
      */
     public Dimension minimumLayoutSize(Container parent) {
         return new Dimension(4, 4);

@@ -118,11 +118,11 @@
      * Called by the AWT when the specified container needs to be laid out.
      *
      * @param parent  the container to lay out
      *
      * @throws AWTError if the target isn't the container specified to the
-     *                      <code>BoxLayout</code> constructor
+     *                      {@code BoxLayout} constructor
      */
     public void layoutContainer(Container parent)
     {
         JViewport vp = (JViewport)parent;
         Component view = vp.getView();
< prev index next >