Results 1 to 4 of 4
Thread: File Navigation?
- 01-07-2011, 01:31 AM #1
Member
- Join Date
- Jan 2009
- Posts
- 92
- Rep Power
- 0
File Navigation?
Hey,
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!
Thanks
- 01-07-2011, 01:38 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Simply you mean kind of a file explorer, isn't it?
- 01-07-2011, 01:46 AM #3
Member
- Join Date
- Jan 2009
- Posts
- 92
- Rep Power
- 0
Yup, I found something that is doing exactly what I wanted:
JTree + FileSystemModel
- 01-07-2011, 01:51 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes, with the JTree you can do that. Give a search on the forum, you could find quite similar implementations.
Similar Threads
-
navigation b/w frames
By imrankhan in forum AWT / SwingReplies: 3Last Post: 03-19-2012, 12:25 PM -
Which one is better for navigation and validation
By anilkumar_vist in forum New To JavaReplies: 1Last Post: 10-18-2010, 05:21 AM -
navigation in jsf
By riya_nap in forum JavaServer Faces (JSF)Replies: 0Last Post: 10-04-2010, 08:53 AM -
Navigation inside a webpage...?
By JavaStudent23 in forum New To JavaReplies: 1Last Post: 03-27-2010, 11:54 AM -
Wep page navigation buttons
By anthony417 in forum Advanced JavaReplies: 1Last Post: 07-26-2007, 08:40 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks