Click here to Skip to main content
15,885,182 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am work on swing related project in that one main frame is there when i run project in that first mainframe1 is visible after when i perform other action event another frame2 is visible but problem is that when i close latest frame(means frame 2 ) at that time hole program is close i.e closes mainframe1 as well as frame2.i want close only frame2 .what can i do for that?
Posted
Comments
Richard MacCutchan 16-Jan-14 4:13am    
Show the relevant parts of your code, no one can guess what your program is doing.

1 solution

Split application runtime and JFrame.
The JFrame is NOT the application! functional code should not be located in a JFrame.

And yes, I second Richard, please show code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900