This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Working with multiple frames" Watch "Working with multiple frames" New topic

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.........
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:
subject: Working with multiple frames
It's not a secret anymore!