Method showOpenDialog(Component parent)
Return type: int
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
if( file.showOpenDialog(this)==JFileChooser.APPROVE_OPTION )
2
if( file.showOpenDialog(this)==JFileChooser.APPROVE_OPTION )
3
if(chooser.showOpenDialog(this)==chooser.APPROVE_OPTION)
4
if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
5
if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
6
int returnVal = chooser.showOpenDialog(this);
7
int value = fileChooser.showOpenDialog(this);
8
if (JFileChooser.APPROVE_OPTION == outputFileChooser.showOpenDialog(this)) {
9
int returnVal = chooser.showOpenDialog(this);
10
photoDirChooser.showOpenDialog(this);
11
int returnVal=fc.showOpenDialog(this);
12
int option = chooser.showOpenDialog(this);
13
if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
14
int retVal = inputFileChooser.showOpenDialog(this);
15
int returnVal = chooser.showOpenDialog(this);
16
int result = chooser.showOpenDialog(this);
17
int returnVal = fc.showOpenDialog(this);
18
int returnVal = chooser.showOpenDialog(this);
19
int rv = openDialog.showOpenDialog(this);
20
int returnVal = chooser.showOpenDialog(this);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.