Note that if you are using a method which takes a String for the directory name, you can use "." to get the current directory. For example


JFileChooser fc = new JFileChooser(".")