What is the problem?!?
this is a pretty easy program to understand:
import javax.swing.*;
import java.io.*;
publicclass getDir
{
publicstaticvoid main(String[] args)
{
JFileChooser FileChooser =new JFileChooser();
JFrame Frame =new JFrame();
File curDir;
FileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
FileChooser.showSaveDialog(Frame);
curDir = FileChooser.getCurrentDirectory();
System.out.println(curDir);
System.exit(0);
}
}
So why when I click save at this directory:
<img src="http://i14.photobucket.com/albums/a327/dekutree1/Directory.jpg">
Do i get the output:
<img src="http://i14.photobucket.com/albums/a327/dekutree1/output.jpg">
Notice how it cuts off the last folder. Any way to fix this?
thanks, lateralus

