Results 1 to 4 of 4
  1. #1
    Moncleared is offline Member
    Join Date
    Jan 2009
    Posts
    92
    Rep Power
    0

    Default 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

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  3. #3
    Moncleared is offline Member
    Join Date
    Jan 2009
    Posts
    92
    Rep Power
    0

    Default

    Yup, I found something that is doing exactly what I wanted:

    JTree + FileSystemModel

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. navigation b/w frames
    By imrankhan in forum AWT / Swing
    Replies: 3
    Last Post: 03-19-2012, 12:25 PM
  2. Which one is better for navigation and validation
    By anilkumar_vist in forum New To Java
    Replies: 1
    Last Post: 10-18-2010, 05:21 AM
  3. navigation in jsf
    By riya_nap in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 10-04-2010, 08:53 AM
  4. Navigation inside a webpage...?
    By JavaStudent23 in forum New To Java
    Replies: 1
    Last Post: 03-27-2010, 11:54 AM
  5. Wep page navigation buttons
    By anthony417 in forum Advanced Java
    Replies: 1
    Last Post: 07-26-2007, 08:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •