Retrieving values of a Set collection?
<p>Can anyone tell me what could be wrong with the following code!  Im this code I'm attempting to retrieve the contents of a Set collection and post them on a JList!</p>

<pre><code>//Populating the SystemDSN List
Set systemDSN = OdbcSystemDSNListUtil.getODBCSystemDSN();

Object[] systemDSNList = systemDSN.toArray();
DefaultListModel systemDSNListNodes = new DefaultListModel();
for (int i = 0; i &lt; systemDSNList.length; i++) {
    systemDSNListNodes.add(i, systemDSNList[i]);
    System.out.println(systemDSNList[i]);
}

jList_SystemDSN.setModel(dataSetListNodes);
</code></pre>

<p>This is what I get in the print out,</p>

<pre><code>Default Group
ODBC Data Sources
ODBC File DSN
geeshe
</code></pre>

<p>And even though the "Default Group" is an entity of some other list, I only get that as the only item shown on the intended JList!</p>
