I have a class which creates a JFrame. When I click on a button in the JFrame, another JFrame in a different class opens up.
Now, when I close the second JFrame, even the first one closes up. Any ideas on preventing this? I want the first frame to remain visible.