So I've been trying to research a little on a topic that I'm not even entirely sure how to describe. Basically I want to learn how to create a file navigator/selector in a panel on the left hand side of my application. For example, when you open eclipse you have the project navigation and you can navigate the files listed in your projects etc.
I'm wanting something more simplistic, I just want to be able to nagivate the files in a directory that I give. And when I say navigate I'm meaning if there is a directory within a directory, I want to be able to expand the subdirectory and see the contents under that.
Sadly I've not found the term to search for on google to research. I've seen JFileChooser which doesn't seem like the path I want to go, however it does give the ability to navigate files/directories. I've also seen ListDialogs and I could potentially use that populating it with the file names after recursing through the directory grabbing names etc, however it doesn't appear like I would have the "expand" ability I am looking for.
Any help or points in the right direction would be appreciated!
Simply you mean kind of a file explorer, isn't it?
Yup, I found something that is doing exactly what I wanted:
JTree + FileSystemModel
Yes, with the JTree you can do that. Give a search on the forum, you could find quite similar implementations.