Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to destroy a JFrame without do exit(0)

807589Jul 2 2008 — edited Jul 2 2008
Hi, I have several JFrames, all are related, for example:

jfrm1 is the default one, if the user press jbtcontinue jfrm2 is created, then if jbutton ok is pressed jfrm3 is created and so on...

My question is: how can I destroy jfrm1 one jfrm2 is created, but without exit totally, I mean, using System.exit(o). in fact i think I need to destroy just the instance (frm1) but i don't know how to do that, please help me with this.

thanks a lot
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2008
Added on Jul 2 2008
1 comment
622 views