Method setSelectedFile(File file)
Return type: void
Member of: javax.swing.JFileChooser
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 fc.setSelectedFile(file);
2 fileChooser.setSelectedFile(new File(mFromFilename));
3 chooser.setSelectedFile( file);
4 chooser.setSelectedFile(init);
5 jfc.setSelectedFile(inputFile);
6 fc.setSelectedFile(new File(fileName));
7 chooser.setSelectedFile( defaultDir );
8 jFileChooser.setSelectedFile(new File(s));
9 jfc.setSelectedFile(file);
10 fileChooser.setSelectedFile(null);
11 setSelectedFile(selectedFile);
12 chooser.setSelectedFile(f);
13 jfc.setSelectedFile(this.getSelected());
14 jfc.setSelectedFile(new File(lastJFCDirectory, filename));
15 logFileChooser.setSelectedFile(new File("monitorLog.txt"));
16 chooser.setSelectedFile( def );
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.