*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Working with multiple frames