title: How to connect two JFrames in netbeans without using swing?
body: <p>I am make a project on cars. How can I make distributor frame popup and cars frame not visible and close automatic? Kindly send any solution in simple and effective way.
  I have done coding this way:-       </p>
  
  <pre><code>    {
        Cars frm1=new Cars();
        Distributor frm2=new Distributor();
        frm2.setVisible(true);
        frm1.setVisible(false);
        frm1.setDefaultCloseOperation(frm1.DISPOSE_ON_CLOSE);
      }                                          
  </code></pre>