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.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
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?
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?