So with JFileChooser I am trying to display the dir's and files on a remote server. Through FTP. But everytime it comes up, it will only show the client system filesystem.. Here is the code...
It prints the local file system...
this.ftp is the FTPClient that is already connected to the server.
Code:
JFrame frame = new JFrame("File Chooser");
File curDir = new File(this.ftp.printWorkingDirectory());
this.fc = new JFileChooser(curDir);
int x = this.fc.showDialog(frame, "Open");
if(x == this.fc.OPEN_DIALOG){
File dir = fc.getCurrentDirectory();
System.out.println(dir.toString());
It prints the local file system...
this.ftp is the FTPClient that is already connected to the server.