Results 1 to 4 of 4

Thread: File browser

  1. #1
    jmele11968 is offline Member
    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0

    Default File browser

    Hey, my first post here, so bear with me.

    I've been coding in java for awhile, and have hit the point where I am starting to code GUI's. I however for the life of me am unable to find a viable solution to makeint a file browser for a FTP client I have to create (based off a text version I already have created).

    I need to create a file browser, like something inside filezilla which allows you to browse the local/remote site, I know I can do something like this with a JList, but I need to be able to display the filename/size and when it was last modified. Is there another solution which would allow me to have sort of a rows/colums type setup like a normal ftp program like filezilla ? I'm not looking for code, i'm looking for a push in the right direction as to what I should look into using that would suit my needs.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: File browser

    You can set a custom FileSystemView to a JFileChooser.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    jmele11968 is offline Member
    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0

    Default Re: File browser

    Quote Originally Posted by DarrylBurke View Post
    You can set a custom FileSystemView to a JFileChooser.

    db
    My issue with this is, I need to have two seperate lists (not icons) in the same window, JFileChooser wouldn't work for me.

    I am trying to duplicate something like this

    Where it shows all the filenames and folders, the size and when they were last modified. But I am trying to do something with colums like shown.

    I honestly can't seem to figure out an option using java.
    Last edited by jmele11968; 12-16-2012 at 04:16 AM.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: File browser

    I would try using two JFileChoosers in a GridLayout(1, 2) with setControlButtonsAreShown(false).

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Displaying doc file in browser through JSP
    By juhiswt in forum Advanced Java
    Replies: 1
    Last Post: 05-11-2012, 03:10 PM
  2. Printing file through browser
    By BobswYourUcle in forum New To Java
    Replies: 5
    Last Post: 07-18-2011, 03:53 PM
  3. Replies: 1
    Last Post: 08-04-2010, 03:24 PM
  4. Display MS-Word file in browser
    By jazz2k8 in forum Advanced Java
    Replies: 6
    Last Post: 12-08-2008, 12:59 PM
  5. File Browser
    By Troman in forum SWT / JFace
    Replies: 5
    Last Post: 09-09-2008, 01:02 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
  •