aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JFileChooser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFileChooser" Watch "JFileChooser" New topic
Author

JFileChooser

rama krishnan
Ranch Hand

Joined: Mar 14, 2008
Posts: 68
how to find the server side Particular directory and files using JFileChooser


MRK
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You can't - JFileChooser is for navigating file systems available to the computer the Swing application is running on. The only way to navigate directories "on a server" would be to make the server's file system shared and map it on the client.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
rama krishnan
Ranch Hand

Joined: Mar 14, 2008
Posts: 68
Thanks Nate
Yves Zoundi
Ranch Hand

Joined: Aug 31, 2008
Posts: 47
Hello,
Have a look at java.io packages and/or Apache Commons IO Library.


Author of VFSJFileChooser and XPontus XML Editor
rama krishnan
Ranch Hand

Joined: Mar 14, 2008
Posts: 68
Is there any way to do this task without using Tomcat & servlet
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42612
    
  65
There are other ways of accessing a file system on a server - FTP or shared directories come to mind.


Ping & DNS - my free Android networking tools app
rama krishnan
Ranch Hand

Joined: Mar 14, 2008
Posts: 68
how to do using the FTP
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

Originally posted by muthurama krishnan:
how to do using the FTP


http://faq.javaranch.com/java/ShowSomeEffort
http://www.google.com

Did you take a look at the JFileChooser API? Have you seen how the JFileChooser dialog looks? On Windows, did you notice the "My Network Places" Icon on the left hand side? What do you think will happen if you click on it? Do you think you can navigate to the server from here and inspect the shared directories from here?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Yves Zoundi
Ranch Hand

Joined: Aug 31, 2008
Posts: 47
If you're looking for a JFileChooser which supports remote files access(FTP, WEBDAV, etc.), you could give a try to VFSJFileChooser.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19761
    
  20

Heh. If it wasn't so relevant to the problem I'd say that post was more appropriate for Blatant Advertising


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
aditya parikh
Greenhorn

Joined: Mar 12, 2012
Posts: 2
A Question for the VFSJFileChooser. I am running an FTP (FileZilla) server. I created an alias /fileimport directory with a file in it.
I am able to connect to the server using FileZilla client okay. I specify localhost:21 and my username password to the VFSJFileChooser connections, it connects okay but no files are displayed. What should I be doing?

Thanks in advance.
aditya parikh
Greenhorn

Joined: Mar 12, 2012
Posts: 2
I downloaded http://www.softpedia.com/progDownload/VFSJFileChooser-Download-93276.html and seems to work.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFileChooser