title: Java Swing: Autoscrolling using JList and JScrollPane
body: <p>I'm having this problem:</p>
  
  <p>I have a JList (within a JScrollPane) with say about 1000 elements, and the dimensions of this JList obviously doesn't allow to show all the data. Now, I have this JList within a JScrollPane and I need that when I say JList.setSelectedIndex(), the JScrollPane automatically scrolls into, and show that element on that index on the JList.</p>
  
  <p>Thank you in advance!</p>