title: how to set scrollbar in jpanel at the end when new component added
body: <p>I have a <code>JPanel</code>(A) with <code>BoxLayout</code>, and it is embed in another <code>JPanel</code>(B) with <code>JScrollPane</code>.
  I want to set the position of scroll at the bottom when a new component is added to A. 
  I try the code below, but it prevent to use scroll up to see all A context:(scroll is fixed at the bottom!)</p>
  
  <pre><code>scroll.getVerticalScrollBar().addAdjustmentListener(new AdjustmentListener() {
      public void adjustmentValueChanged(AdjustmentEvent e) {
          e.getAdjustable().setValue(e.getAdjustable().getMaximum());  
      }
  });
  </code></pre>
  
  <p>Does any one have another solution?</p>