From 076acb2b0fa41ff1f97f86a65d1c892c3f9f3730 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Fri, 24 May 2013 13:38:41 +0530 Subject: [PATCH] JFileChooser is loosing focus and File open window is going behind Advanced Options window, when file chooser icon is clicked first time --- .../wavemaker/desktop/launcher/ui/LauncherAdvOptsDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wavemaker-desktop/wavemaker-launcher/src/main/java/com/wavemaker/desktop/launcher/ui/LauncherAdvOptsDialog.java b/wavemaker-desktop/wavemaker-launcher/src/main/java/com/wavemaker/desktop/launcher/ui/LauncherAdvOptsDialog.java index a893059c2b..26c7d16932 100644 --- a/wavemaker-desktop/wavemaker-launcher/src/main/java/com/wavemaker/desktop/launcher/ui/LauncherAdvOptsDialog.java +++ b/wavemaker-desktop/wavemaker-launcher/src/main/java/com/wavemaker/desktop/launcher/ui/LauncherAdvOptsDialog.java @@ -711,7 +711,7 @@ private void btnFileChooserActionPerformed(java.awt.event.ActionEvent evt)// GEN chooser.setCurrentDirectory(new File(this.folder)); } - if (chooser.showOpenDialog(getParent()) == JFileChooser.APPROVE_OPTION) { + if (chooser.showOpenDialog(LauncherAdvOptsDialog.this) == JFileChooser.APPROVE_OPTION) { this.tfBrowser.setText(chooser.getSelectedFile().getAbsolutePath()); this.folder = chooser.getCurrentDirectory().getAbsolutePath(); }