title: JFrame does not hide when setVisible(false)
body: <pre><code>import javax.swing.*;
  
  class Frame extends JFrame{
      Frame() {
          JFrame j = new JFrame();
          j.setBounds(100, 200, 120, 120);
          j.setTitle("null");
          j.setVisible(true);
          j.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
      }
  }
  
  public class test001 {
  
      public static void main (String Args[]){
          Frame f = new Frame();
           System.out.print("Visible = True");
  
          f.setVisible(false);
          System.out.print("Visible = false");
      }
  }
  </code></pre>
  
  <p>after the setVisible(false) command. The JFrame Window still show on my desktop.
  How can I fix that ?</p>