Method showDialog(Component parent, String approveButtonText)
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 int result = dirChooser.showDialog(this, "Select Directory");
2 int result = classChooser.showDialog(this, "Select Files");
3 if (f.showDialog(this, "ok") == JFileChooser.APPROVE_OPTION)
4 if (fileChooser.showDialog(this, "Ok") == JFileChooser.APPROVE_OPTION)
5 int result = chooser.showDialog(this, "Select Results Directory");
6 chooser.showDialog(this,"Choose");
7 if (chooser.showDialog (this, bundle.getString ("LBL_select_viewer")) ==
8 int action = fc.showDialog(container, "Choose");
9 int returnValue = chooser.showDialog(model, "Extract");
10 if (JFileChooser.APPROVE_OPTION == fc.showDialog(this,"Load")) {
11 int result = chooser.showDialog(null, "OK");
12 int value = getFileChooser().showDialog( frame, "Create");
13 switch(dd.showDialog(this.getParentFrame(),"Select")) {
14 if (APPROVE_OPTION == showDialog(parent, btnText==null?Resources.CMD_OK:btnText)) {
15 int result = showDialog(cFrame, null);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.