我也木有用过这些东西
帮你up
顺便问一下,选择文件的那个类在where?

解决方案 »

  1.   

    to fft123:
        FileDialog fd = new FileDialog((Frame)this.getParent(),"选择文件夹",FileDialog.LOAD);
        fd.show();
        this.jTextPath.setText(fd.getDirectory());
      

  2.   

    void setFileSelectionMode(int mode) 
              Sets the JFileChooser to allow the user to just select files, just select directories, or select both files and directories. JFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY)
      

  3.   

    被kypfos(今天,我革谁的命?) 抢先一步!