nJFileChooser
chooser = new JFileChooser();
nchooser.setCurrentDirectory(new
File("c:\\Tutorial"));
nint
res = chooser.showOpenDialog(janela);
nif
(res == JFileChooser.APPROVE_OPTION) {
n File file =
chooser.getSelectedFile();
n
System.out.println(file.getName());
n}
n
n
n
n
n
n
n