title: Java JList scroll to selected item
body: <p>I have a <code>JList</code> with a lot of items in it, of which one is selected. I would like to scroll to the selected item in this <code>JList</code>, so the user can quickly see which item is selected.</p>
  
  <p>How can I do this?</p>
  
  <pre><code>String[] data = {"one", "two", "three", "four", /* AND A LOT MORE */};
  JList dataList = new JList(data);
  JScrollPane scrollPane = new JScrollPane(dataList);
  </code></pre>