我用了这个类里面的getCurrentDirectory()方法来返回当前目录,可是实际上得到的是当前目录的父目录,好奇怪啊,那么如何才能得到当前的目录呢?
试试getSelectedFile()参考下:http://stackoverflow.com/questions/8763543/jfilechooser-getcurrentdirectory-returning-wrong-current-directory