java listing the txt files in sub folders
<p>Hi I have a jlist and currently it is viewing a folder + subfolders... Now i would like to change this to view the files in the subfolders as well. below please find the code I am currently using:</p>

<pre><code> jList1.setModel(new javax.swing.AbstractListModel()
        {

            File folder = new File ("/Assignment_Datex/message_outbox/"); 
            File[] listofFiles = folder.listFiles();



       // @Override
                public int getSize() 
                { return listofFiles.length; }
       // @Override
                public Object getElementAt(int i) 
                { return listofFiles[i];}
            }

            );
</code></pre>

<p><img src="http://i.stack.imgur.com/IQqNA.jpg" alt="enter image description here"></p>

<p>Right now as you can see in the screenshot, the Jlist is only viewing the folders and not the files in them... Any help please?</p>
