This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes badly stuck with GUI problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "badly stuck with GUI problem" Watch "badly stuck with GUI problem" New topic

badly stuck with GUI problem

Abhi Chat
Ranch Hand

Joined: Oct 10, 2004
Posts: 57
I am makin the GUi which has the main frame and container inside the
public i have an inner class which opens another
frame as a popup.... now when i try to close the popup then the entire
application closes.

heres the code for the popup class...

JPanel panel = new JPanel();

JFrame frame = new JFrame( "Graphs" );

frame.getContentPane().add( panel );

//Make sure we have nice window decorations.

//Display the window.

please advice

SCJP 1.4<br />Preparing for <br />SCJD and SCWCD
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
Try using a different close operation for the frame, like DISPOSE_ON_CLOSE or HIDE_ON_CLOSE.

How does that work for you?
subject: badly stuck with GUI problem
Similar Threads
How to close this window?
From a OO Point of View in GUI design
How do you use javax.swing.Popup?
badlt stuck with GUI problem
Using Jpanel and Color