Comment fermer un jframe dans netbeans

      JFrame1.dispose();  //Remove JFrame 1
      JFrame2.setVisible(true) //Show other frame
Upset Unicorn