Sample code would be nice.....
I assume its probably the same in java as in c/c++.
: Sample code would be nice.....
: I assume its probably the same in java as in c/c++.
The FileDialog class, which represents a file save or file open dialog, has these functions to retrieved using the following functions:
String getFile();String getDirectory();
The following code constructs a file dialog and displays information above frame f. After the user specifies a file, the file name is retrieved and displayed.
FileDialog myDialog = new FileDialog(f,"Select", FileDialog.LOAD);
myDialog.setVisible(true);System.out.println( myDialog.getFile() );
Keenan Stewart (email@example.com)Learning Advisor, http://scholars.com
Microsoft Authorized Technical Education CenterNovell Authorized Online Training Provider
It looks like you're new here. If you want to get involved, click one of these buttons!