title: JList retrieving data from a jlist
body: <p>How can I get the 3 individual strings from the JList? If I use <code>model.elementAt</code> I get the strings, but they are not separated from each other. </p>
  
  <ul>
  <li>How is the data stored in the JList?</li>
  <li>Can i perhaps get the data separated from each other by using an array?</li>
  <li>Is the data stored in a array?</li>
  </ul>
  
  
  
  <pre><code>while(resultaat.next()){
      model.addElement(resultaat.getString(1) + "  "
          + resultaat.getString(2) + "  "
          + resultaat.getString(3));
  }
  </code></pre>
  
  <p>I use that line of code to add a bunch of strings to a JList model. The strings are from a mysql database.</p>