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