< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java
Print this page
@@ -135,11 +135,11 @@
private boolean thumbActive;
/**
* Determine whether scrollbar layout should use cached value or adjusted
- * value returned by scrollbar's <code>getValue</code>.
+ * value returned by scrollbar's {@code getValue}.
*/
private boolean useCachedValue = false;
/**
* The scrollbar value is cached to save real value if the view is adjusted.
*/
@@ -512,20 +512,20 @@
}
/**
* A vertical scrollbar's preferred width is the maximum of
- * preferred widths of the (non <code>null</code>)
+ * preferred widths of the (non {@code null})
* increment/decrement buttons,
* and the minimum width of the thumb. The preferred height is the
* sum of the preferred heights of the same parts. The basis for
* the preferred size of a horizontal scrollbar is similar.
* <p>
- * The <code>preferredSize</code> is only computed once, subsequent
+ * The {@code preferredSize} is only computed once, subsequent
* calls to this method just return a cached size.
*
- * @param c the <code>JScrollBar</code> that's delegating this method to us
+ * @param c the {@code JScrollBar} that's delegating this method to us
* @return the preferred size of a Basic JScrollBar
* @see #getMaximumSize
* @see #getMinimumSize
*/
public Dimension getPreferredSize(JComponent c) {
@@ -713,11 +713,11 @@
return minimumThumbSize;
}
/**
* Returns the largest acceptable size for the thumb. To create a fixed
- * size thumb one make this method and <code>getMinimumThumbSize</code>
+ * size thumb one make this method and {@code getMinimumThumbSize}
* return the same value.
* <p>
* <b>Warning </b>: the value returned by this method should not be
* be modified, it's a shared static constant.
*
@@ -1521,11 +1521,11 @@
}
/**
* Listener for scrolling events initiated in the
- * <code>ScrollPane</code>.
+ * {@code ScrollPane}.
*/
protected class ScrollListener implements ActionListener
{
int direction = +1;
boolean useBlockIncrement;
< prev index next >