I dont know much about java. I wrote this code in JTree but when I run the program JTree just shows the last fList. Is there anything tha I can add to the code so that JTree display all of them? JTreeCode is another class in the same package.
File fList[] = File.listRoots();
for(int i = 0; i < fList.length; i++)
{
jTree1.setModel(new JTreeCode(fList[i]));
}