Well, your second JFrame probably has a call to setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE) somewhere in its setup code. You need to change that to use DISPOSE_ON_CLOSE or something else. Those are not commands. They are constants you use to specify the parameter value.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847