要是不可以的话,FileDialog中的SAVE如何真正实现呢??困惑ing

解决方案 »

  1.   

    import java.io.File;
    import java.io.*;public class exchange2 {
        public exchange2() {
        }
        public static void main(String[] args) {
            exchange2 exchange21 = new exchange2();
            File f = new File("f:\\test111.txt");
            if(!f.exists()){
                try {
                    f.createNewFile();
                }
                catch (IOException ex) {
                }
            }
        }}
      

  2.   

    File f = new File("f:\\test111.txt");
    得在这里改路径啊!