FileDialog
Allows file browsing and single selection :
FileDialog fd=new FileDialog(pf,“testFileDialog”);
fd.setVisible(true);
String fname = fd.getFile();
It is possible to :
- start browsing from a particular path with : setDirectory(String dir),
- set a FilenameFilter to view a constrained list of files by implementing the FilenameFilter interface and method setFilenameFilter(theFilter).