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 customer. I don’t want the user can open more than one create frame. Any swing component or API can do that? or how can disabled the main frame? Something like JDialog.
Example now I have a main frame contains jtable display all the customer information,
Share
I would suggest that you make your new customer dialog a modal
JDialogso that you do not allow input from other dialogs/frames in your app while it is visible. Take a look at the modality tutorial for details.