Re: closing a specific JFrame of several



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.

.



Relevant Pages

  • RE: visual c++ runtime library
    ... my windows wont shut down properly. ... says it wont respond even when I ask to terminate now. ... Then try to Disable the Add-Ons on your Browser somehow your browser been ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Messages Not Seen
    ... AVG free antivirus http://www.grisoft.com ... Trouble Shooting guide to Windows http://mvps.org/winhelp2002/ ... > This program can longer run and will now terminate. ... > Any idea what this is and how I can fix it? ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: what ascii symbol stands for EOF in windows based systems?
    ... Which assembly or Windows ... ctrl-Z will terminate input with some programs. ... byte value of zero as EOF which will terminate reading further data from the ...
    (alt.lang.asm)
  • Re: NTVDM Error Message
    ... Choose 'Close' to terminate the application." ... Troubleshooting NTVDM and WOW Startup Errorshttp://support.microsoft.com/kb/q220155/ ... Microsoft Windows NT Server 4.0, Terminal Server Edition, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Runtime Error when opening IE in more than one account
    ... Try uninstalling the Google toolbar using Control Panel-Add/Remove. ... Another user receiving runtime errors fixed it by disabling McAfee's ... MS MVP Windows - Internet Explorer ... application has requested the Runtime to terminate in an unusual way. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)