7057769: JScrollBar spec should specify that unit increment & decrement functionality may not be present
authormalenkov
Thu, 22 Aug 2013 21:05:11 +0400
changeset 20095 619a080ff304
parent 20094 462e588b8284
child 20096 fbbbe389c8b1
7057769: JScrollBar spec should specify that unit increment & decrement functionality may not be present Reviewed-by: alexsch
jdk/src/share/classes/javax/swing/JScrollBar.java
--- a/jdk/src/share/classes/javax/swing/JScrollBar.java	Thu Aug 22 17:17:25 2013 +0400
+++ b/jdk/src/share/classes/javax/swing/JScrollBar.java	Thu Aug 22 21:05:11 2013 +0400
@@ -344,6 +344,9 @@
      * that override this method and delegate to the viewports
      * Scrollable view, if it has one.  The Scrollable interface
      * provides a more specialized version of this method.
+     * <p>
+     * Some look and feels implement custom scrolling behavior
+     * and ignore this property.
      *
      * @param direction is -1 or 1 for up/down respectively
      * @return the value of the unitIncrement property
@@ -361,6 +364,10 @@
      * <p>
      * Note, that if the argument is equal to the value of Integer.MIN_VALUE,
      * the most look and feels will not provide the scrolling to the right/down.
+     * <p>
+     * Some look and feels implement custom scrolling behavior
+     * and ignore this property.
+     *
      * @see #getUnitIncrement
      * @beaninfo
      *   preferred: true
@@ -387,6 +394,9 @@
      * that override this method and delegate to the viewports
      * Scrollable view, if it has one.  The Scrollable interface
      * provides a more specialized version of this method.
+     * <p>
+     * Some look and feels implement custom scrolling behavior
+     * and ignore this property.
      *
      * @param direction is -1 or 1 for up/down respectively
      * @return the value of the blockIncrement property
@@ -404,6 +414,10 @@
      * <p>
      * Note, that if the argument is equal to the value of Integer.MIN_VALUE,
      * the most look and feels will not provide the scrolling to the right/down.
+     * <p>
+     * Some look and feels implement custom scrolling behavior
+     * and ignore this property.
+     *
      * @see #getBlockIncrement()
      * @beaninfo
      *   preferred: true