title: JScrollPane and JList auto scroll
body: <p>I've got the next code:</p>
  
  <pre><code>    listModel = new DefaultListModel();
      listModel.addElement(dateFormat.format(new Date()) + ": Msg1");
      messageList = new JList(listModel);
      messageList.setLayoutOrientation(JList.VERTICAL);
  
      messageScrollList = new JScrollPane(messageList);
      messageScrollList.setPreferredSize(new Dimension(500, 200));
  
      messageScrollList.getVerticalScrollBar().addAdjustmentListener(new AdjustmentListener() {  
          public void adjustmentValueChanged(AdjustmentEvent e) {  
              e.getAdjustable().setValue(e.getAdjustable().getMaximum());  
          }
      }); 
  </code></pre>
  
  <p>It auto scrolls down. But, if I try to scroll back up to re-read a message, it forces a scroll down.
  How can I fix this?</p>