aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Working with multiple frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Working with multiple frames" Watch "Working with multiple frames" New topic
Author

Working with multiple frames

Richard Mendoza
Ranch Hand

Joined: Feb 26, 2003
Posts: 48
I have two frames(swing) in my application, and I placed command button named "CLOSE" in the second frame. How do I close the second frame without exiting the whole application using the command button that I have placed? I just want to close the frame and the first frame must be resumed. I used System.exit(0) but it closes the whole application. I need ur help. pls.........
Richard
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Looks like Gregg's given you a hint here.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Working with multiple frames