2011-01-20 2 views

답변

5

은 당신이 사용하는 프레임 워크의 이름을하지 못했지만, 가정, 그것은 JFileChooser 초기 경로 설정 할 수 있도록 몇 가지 생성자가, 스윙의 :의 AWT 프레임 워크에서 FileDialog를 들어

JFileChooser(File currentDirectory) 
     Constructs a JFileChooser using the given File as the path. 

을 설정하는 세터를 사용을 디렉토리 전에 대화 상자 표시

setDirectory(String dir) 
     Sets the directory of this file dialog window to be the specified directory.