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
I think you should use this code for the main jframe when you trying to open new one :
this.setEnabled(false);