FileDialog는 내용부를 구성할 필요가 없고 크기를 지정할 필요가 없다 객체만 생성하면 자동으로 이루어진다 맴버변수(Fields) 필드속성 필드명 내용 static final int LOAD 열기 속성의 파일 다이알로그 static final int SAVE 저장 속성의 파일 다이알로그
생성자(Constructs) Constructs 내용 FileDialog(Frame parent) parent에 귀속된 FileDialog생성 FileDialog(Frame p, String title) parent에 귀속되고 title의 제목을 가진 FileDialog 생성 FileDialog(Frame p, String t, int mode) parent에 귀속되고 title의 제목을 가지며 LOAD나 SAVE속성을 지정할 수 있는 생성자
Methods Method 내용 String getDirectori() 현재 선택된 디렉토리 얻기 String getFile() 현재 선택된 파일명 얻기 int getMode() 현재 설정된 모드 얻기(SAVE or LOAD) void setDirectory(String dir) FileDialog의 디랙토리 설정하기 void setFile(String file) FileDialog의 선택될 파일 설정하기 void setMode(int mode) FileDialog의 모드 실행하기