Re: closing a specific JFrame of several
- From: "William Z." <Wizumwalt@xxxxxxxxx>
- Date: 18 Dec 2006 15:31:34 -0800
But that would just close the windows and leave the VM running. Should
I keep a running count of open frames and when 0, call System.exit()?
The System.exit(0); call tells the JVM to terminate the program....
Don't use the addWindowListener at all, instead what you really want is
to call
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
Hope this helps,
Daniel.
.
- Follow-Ups:
- Re: closing a specific JFrame of several
- From: Daniel Pitts
- Re: closing a specific JFrame of several
- References:
- closing a specific JFrame of several
- From: William Z.
- Re: closing a specific JFrame of several
- From: Daniel Pitts
- closing a specific JFrame of several
- Prev by Date: Re: closing a specific JFrame of several
- Next by Date: Re: closing a specific JFrame of several
- Previous by thread: Re: closing a specific JFrame of several
- Next by thread: Re: closing a specific JFrame of several
- Index(es):
Relevant Pages
|