< prev index next >

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

Print this page

        

@@ -43,19 +43,19 @@
  */
 public interface Scrollable
 {
     /**
      * Returns the preferred size of the viewport for a view component.
-     * For example, the preferred size of a <code>JList</code> component
+     * For example, the preferred size of a {@code JList} component
      * is the size required to accommodate all of the cells in its list.
-     * However, the value of <code>preferredScrollableViewportSize</code>
-     * is the size required for <code>JList.getVisibleRowCount</code> rows.
+     * However, the value of {@code preferredScrollableViewportSize}
+     * is the size required for {@code JList.getVisibleRowCount} rows.
      * A component without any properties that would affect the viewport
-     * size should just return <code>getPreferredSize</code> here.
+     * size should just return {@code getPreferredSize} here.
      *
-     * @return the preferredSize of a <code>JViewport</code> whose view
-     *    is this <code>Scrollable</code>
+     * @return the preferredSize of a {@code JViewport} whose view
+     *    is this {@code Scrollable}
      * @see JViewport#getPreferredSize
      */
     Dimension getPreferredScrollableViewportSize();
 
 

@@ -97,11 +97,11 @@
     int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction);
 
 
     /**
      * Return true if a viewport should always force the width of this
-     * <code>Scrollable</code> to match the width of the viewport.
+     * {@code Scrollable} to match the width of the viewport.
      * For example a normal
      * text view that supported line wrapping would return true here, since it
      * would be undesirable for wrapped lines to disappear beyond the right
      * edge of the viewport.  Note that returning true for a Scrollable
      * whose ancestor is a JScrollPane effectively disables horizontal
< prev index next >