How to display computer files and folders in java swing GUI [closed]?

To display the correct icons I suggest to use javax.swing.filechooser. FileSystemView Here are some classes I wrote to create a list and a combo box of file system roots: softsmithy.sourceforge.net/lib/docs/api/... softsmithy.sourceforge.net/lib/docs/api/... softsmithy.sourceforge.net/lib/docs/api/... softsmithy.sourceforge.net/lib/docs/api/... softsmithy.sourceforge.net/lib/docs/api/... To use the library you can use the following Maven dependency: org.softsmithy. Lib lib-core 0.1 Or download it from here: sourceforge.net/projects/softsmithy/file... Here is the source: softsmithy.hg.sourceforge.net/hgweb/soft... http://softsmithy.hg.sourceforge.net/hgweb/softsmithy/lib/main-golden/file/5c4db802573b/lib-core/src/main/java/org/softsmithy/lib/swing/JFileRootComboBox.java http://softsmithy.hg.sourceforge.net/hgweb/softsmithy/lib/main-golden/file/5c4db802573b/lib-core/src/main/java/org/softsmithy/lib/swing/filechooser/FileRootComboBoxModel.java softsmithy.sourceforge.net/lib/docs/api/...0 softsmithy.sourceforge.net/lib/docs/api/...1.

1 I did not bother to investigate the plethora of links (which are probably worth an up-vote of their own), but the FileSystemView is a good way to get nice icons. See my comment to Brogrammer for the reason. – Andrew Thompson Oct 10 at 15:40.

A TreeCellRendererYou will need to use a JTree. You can build your own data structure of nodes, organize them how you see fit, then render them with a TreeCellRenderer.

Good edit suggestion Andrew. I posted the original answer before my morning coffee. :-) – Daniel Pereira Oct 10 at 18:49.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions