How can I only close child JFrame without Closing parent FRrame
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Peter_Zhang
Posted On:   Thursday, April 5, 2001 07:55 PM

I have a JFrame(first) with a JButton, when I click the button, it will open another JFrame(second). Now if I close the second JFrame, the first one is also closed. How can I only close second one and keep fisrt one openning?? Please give me some ideas.

Thanks in advance.

Peter

Re: How can I only close child JFrame without Closing parent FRrame

Posted By:   Sandip_Chitale  
Posted On:   Monday, April 9, 2001 12:53 PM

Closing one should not close the other.
Most likely you have some mistake in your code. Look for setVisible(false) in you code and make sure the target JFrame is the correct one.
About | Sitemap | Contact