import java.io.File;

import javax.swing.JFileChooser;
import javax.swing.JFrame;

public class JFileChooserBug extends JFrame {

    public static void main(String[] args) {
        JFileChooserBug jFile = new JFileChooserBug();

        JFileChooser fc = new JFileChooser();
        if (JFileChooser.APPROVE_OPTION == fc.showSaveDialog(jFile)) {
            File selFile = fc.getSelectedFile();
            System.err.println(selFile.getAbsolutePath());
        }

    }

}
