How to disable main JFrame when open new JFrame

后端 未结 5 1517
旧时难觅i
旧时难觅i 2020-12-03 14:28

Example now I have a main frame contains jtable display all the customer information, and there was a create button to open up a new JFrame that allow user to create new cus

5条回答
  •  不思量自难忘°
    2020-12-03 15:11

    You can use:

     private void btn_NewFormActionPerformed(java.awt.event.ActionEvent evt) { 
    
                 this.hide();
                 new Frm_NewFormUI().setVisible(true);
    
     }
    

提交回复
热议问题