title: Adding Scrollbar to JList
body: <p>I'm trying to add a scrollbar to a JList (which uses a custom data model). Adding a JScrollPane actually <em>hides</em> the JList, instead of adding a scrollbar. When I run the code with the scrollbar, the JList is not visible, and I cannot see the data.</p>
  
  <pre><code>playlistField = new JList(playlist); // playlist is a data model
  playlistField.setLocation(32, 220-36);
  playlistField.setSize(350,120);
  playlistField.setVisible(true);
  this.add(playlistField);
  
  listScrollPane = new JScrollPane(playlistField, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
  </code></pre>
  
  <p>Commenting out  the listScrollPane = ... line makes the JList visible again and it works as expected.</p>
  
  <p>What did I miss?</p>