JFrame does not give the option to set the modality, so a JDialog is a much better choice for a second or child window to open from a JFrame. Also, you should be controlling the GUI elements from...