Need help running 2 frames at the same time.
I'm writing a program where I have to run multiple JFrames at the same time. To make things simpler: The following Frame is dispayed:
When the wrong user name for player 1 is entered a dialog will display asking if the user wants to create a new acccount. When he answers yes the following frame displays:
The previous display then automatically enters the details of the new account in the fields when the create a new account frame's confirm button is pressed.
The problem is when I run both of the frames the program freezes. How do I run 2 interlinked frames?
PS: The Create a new account frame object is created inside of the new game frame's class.