I have smalll application, containing 2 jFrame forms.
Also, agree this is a bad design. An application should only contain a single JFrame.
If you need child windows, then
you should create a modal JDialog. There is no need to disable the original button because you won't be able to access the the frame again until you close the dialog.
Or, has already been mentioned you can use a CardLayout.