Как закрыть jframe в Netbeans

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