< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java

Print this page

        

*** 135,145 **** private boolean thumbActive; /** * Determine whether scrollbar layout should use cached value or adjusted ! * value returned by scrollbar's <code>getValue</code>. */ private boolean useCachedValue = false; /** * The scrollbar value is cached to save real value if the view is adjusted. */ --- 135,145 ---- private boolean thumbActive; /** * Determine whether scrollbar layout should use cached value or adjusted ! * 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,531 **** } /** * 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 */ public Dimension getPreferredSize(JComponent c) { --- 512,531 ---- } /** * 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 */ public Dimension getPreferredSize(JComponent c) {
*** 713,723 **** return minimumThumbSize; } /** * Returns the largest acceptable size for the thumb. To create a fixed ! * size thumb one make this method and <code>getMinimumThumbSize</code> * 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. * --- 713,723 ---- return minimumThumbSize; } /** * Returns the largest acceptable size for the thumb. To create a fixed ! * 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,1531 **** } /** * Listener for scrolling events initiated in the ! * <code>ScrollPane</code>. */ protected class ScrollListener implements ActionListener { int direction = +1; boolean useBlockIncrement; --- 1521,1531 ---- } /** * Listener for scrolling events initiated in the ! * {@code ScrollPane}. */ protected class ScrollListener implements ActionListener { int direction = +1; boolean useBlockIncrement;
< prev index next >