Wednesday, September 19, 2001 08:21 AM
Do you mean that the Frame is still visible?
If so, you'll need to dispose of the frame, not just the panel.
JFrame frame = new JFrame("Test window");
frame.getContentPane().add(new JLabel("Here is some text!"));
Hope that helps,