How to disable main JFrame when open new JFrame

后端 未结 5 1538
旧时难觅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 14:54

    I think you should use this code for the main jframe when you trying to open new one :

    this.setEnabled(false);

提交回复
热议问题