Skip to main content

Closing 1 App But Not The Other

No replies
longphant
Offline
Joined: 2010-08-25

My main class, call it Main.java, calls a Desktop Application I created in Netbeans. After the user clicks a button, it returns to Main.java, which then calls another desktop application which I created with Netbeans. The thing is, if I close one of them, I end up closing both. Is there a way that I can just close one but not the other?

These GUIs (GUI1 and GUI2) are called by: I changed the main method in GUI1App.java and GUI2App.java to be called "launch" instead of main. Then in my Main.java, I just use

String[] args = {};
GUI1App app = new GUI1App();
app.launch(args};