Mercurial > hg > openjdk > jdk8 > jdk
changeset 8106:1daffcf035c4
7057770: (spec)Scrollbar spec should specify that unit increment & decrement functionality may not be present
Reviewed-by: alexsch
author | malenkov |
---|---|
date | Tue, 10 Sep 2013 17:06:38 +0400 |
parents | 8b6dace81d6c |
children | eedb2b6d93ec |
files | src/share/classes/java/awt/Scrollbar.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/java/awt/Scrollbar.java Tue Sep 10 14:33:48 2013 +0400 +++ b/src/share/classes/java/awt/Scrollbar.java Tue Sep 10 17:06:38 2013 +0400 @@ -715,6 +715,9 @@ * The unit increment must be greater than zero. * Attepts to set the unit increment to a value lower than 1 * will result in a value of 1 being set. + * <p> + * In some operating systems, this property + * can be ignored by the underlying controls. * * @param v the amount by which to increment or decrement * the scroll bar's value @@ -752,6 +755,9 @@ * scroll bar, generally through a mouse or keyboard gesture * that the scroll bar receives as an adjustment event. * The unit increment must be greater than zero. + * <p> + * In some operating systems, this property + * can be ignored by the underlying controls. * * @return the unit increment of this scroll bar * @see java.awt.Scrollbar#setUnitIncrement