title: How to display computer files and folders in java swing GUI
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5637305/swing-jtree-with-checkbox-and-jfilechooser">Swing JTree with Checkbox and JFileChooser</a>  </p>
  </blockquote>
  
  
  
  <p>I am developing an application in java swings.I have used jfilechooser to open up the files and directories in my computer.But the structure of the directories and files in jfilechooser are not the way i wanted.I wanted it this way</p>
  
  <p><img src="https://i.stack.imgur.com/3MRwP.png" alt="enter image description here"> </p>
  
  <p>How can i achieve this?Any suggestions would be really helpful.Thanks in advance.</p>