-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
beta
-
x86
-
windows_nt
-
Verified
OS:WInNT
********
Scrollbar's BlockIncrement value is not changed when when its 'Visible' value is changed. Blockincrement value is set to 10 by default, irrespective of 'Visible'
value and it remains 10 until it is changed explicitly by setBlockIncrement().
In the Java 2 SE,v 1.3 docs, it is given as
visible - the size of the scroll bar's bubble, representing the visible
portion; the scroll bar uses this value when paging up or down
by a page.
Which means visible value is used by the scrollbar while paging up/down and
hence BlockIncrement value should be set to visible value for the above
behaviour to happen.
(ie) BlockIncrement should get changed to 'visible' value when 'visible'
value is changed unless block increment is set to some other value explicitly.
But the default block increment value is always 10 irrespective of the visible
value and scrollbar is not using this visible value for paging-up/down
How to reproduce the Bug? -------->
Run this sample code. You would see a frame with a textarea,scrollbar and
other components.
Click the button "change visible amount" which will change the bare scrollbar's
visible value. This should change the block increment value accordingly.
After clicking, block increment value and visible value are displayed in the
textarea with a comment denoting the bug.
********
Scrollbar's BlockIncrement value is not changed when when its 'Visible' value is changed. Blockincrement value is set to 10 by default, irrespective of 'Visible'
value and it remains 10 until it is changed explicitly by setBlockIncrement().
In the Java 2 SE,v 1.3 docs, it is given as
visible - the size of the scroll bar's bubble, representing the visible
portion; the scroll bar uses this value when paging up or down
by a page.
Which means visible value is used by the scrollbar while paging up/down and
hence BlockIncrement value should be set to visible value for the above
behaviour to happen.
(ie) BlockIncrement should get changed to 'visible' value when 'visible'
value is changed unless block increment is set to some other value explicitly.
But the default block increment value is always 10 irrespective of the visible
value and scrollbar is not using this visible value for paging-up/down
How to reproduce the Bug? -------->
Run this sample code. You would see a frame with a textarea,scrollbar and
other components.
Click the button "change visible amount" which will change the bare scrollbar's
visible value. This should change the block increment value accordingly.
After clicking, block increment value and visible value are displayed in the
textarea with a comment denoting the bug.