I want to create a Swing interface that allow me to do browse within folders and can doing superior folder return. I've tried to do with Jtree, but I want have a different view of that. I try JFileChooser, but not for me. I want effect double click onto folders, and enter inside, and return into parent Folder, and see type of extension, size, Date of last modify or date of creation. In short, as a windows explorer. Someone can help me? I will post an example: E.g. immage
Asked
Active
Viewed 958 times
0
-
we might be able to help you, when you come up with specific questions. – Stultuske Jan 25 '16 at 09:15
-
You know an alternative to JTree and JFileChooser to do that? Thanks you – JoeJoe Jan 25 '16 at 09:23
-
*"but I want have a different view of that"* - Then customise it. `JTree` is just a hierarchical view, if you want the "file listing" then you'll probably want to have a look at `JList`. *"I want effect double click onto folders, and enter inside, and return into parent Folder, and see type of extension, size, Date of last modify or date of creation"* - All of it's possible, but you're going to have to put each part together yourself. As it stands the question is simply to broad – MadProgrammer Jan 25 '16 at 09:39
1 Answers
1
You can start using source from here (JTree with filesystem model). Also you can try JTreeTable, there are many examples how to use it (even customize it using renderers from first link).

Community
- 1
- 1

Ιναη ßαbαηιη
- 3,410
- 3
- 20
- 41
-
Thanks! JTreeTable, is closer to my needs, but, can I have a view different? Can I open a folder without tree view? Anyway, now I read the documentation – JoeJoe Jan 25 '16 at 09:32
-
@JoeJoe [How to Use Trees](http://docs.oracle.com/javase/tutorial/uiswing/components/tree.html) – MadProgrammer Jan 25 '16 at 09:37
-
-
@JoeJoe I prefer JXTreeTable from SwingLabs SwingX project, but that's me – MadProgrammer Jan 25 '16 at 09:47
-