< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/synth/SynthScrollBarUI.java
Print this page
*** 332,351 ****
orientation);
}
/**
* A vertical scrollbar's preferred width is the maximum of
! * preferred widths of the (non <code>null</code>)
* 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
* calls to this method just return a cached size.
*
! * @param c the <code>JScrollBar</code> that's delegating this method to us
* @return the preferred size of a Basic JScrollBar
* @see #getMaximumSize
* @see #getMinimumSize
*/
@Override
--- 332,351 ----
orientation);
}
/**
* A vertical scrollbar's preferred width is the maximum of
! * 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} is only computed once, subsequent
* calls to this method just return a cached size.
*
! * @param c the {@code JScrollBar} that's delegating this method to us
* @return the preferred size of a Basic JScrollBar
* @see #getMaximumSize
* @see #getMinimumSize
*/
@Override
< prev index next >