What is the difference between block increment
and unit increment
and what are these two values used for?
These two fields/values are used by the Adjustable
class. This class includes these four methods:
int getBlockIncrement();
int getUnitIncrement();
void setBlockIncrement(int b);
void setUnitIncrement(int u);
The JScrollBar
class for example implements this Adjustable
class. These two values effect the behaviour of this scroll bar.
So, what are these two values used for exactly? Also, how do these values affect the behaviour of the JScrollBar
component.
Are these values different by default on different operating systems?