title: Swing jfilechooser blocking other frames after passing null
body: <p>I want my jfilechooser to display without blocking parent but i tried everything and still it is blocking parent. Any Solution....</p>
  
  <pre><code>public class main_class {
  
      public static void main(String[] args) {
          JFrame parent_frame = new JFrame("PARENT");
  
          if (parent_frame != null) {
              parent_frame.setBounds(50, 50, 500, 500);
              parent_frame.setVisible(true);
              parent_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JFileChooser chooser = new JFileChooser();
              chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
              int returnVal = chooser.showDialog(null, "Ok");
          }
      }
  }
  </code></pre>