Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #439
| From | "William Z." <william.z.@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: closing a specific JF |
| Message-ID | <1166484694.306479.219590@f1g2000cwa.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1166483007.396950.128280@l12g2000cwl.googlegroups.com> |
| Date | 2011-04-27 15:27 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui 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. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
closing a specific JFrame "William Z." <william.z.@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
Re: closing a specific JF "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
Re: closing a specific JF "William Z." <william.z.@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
Re: closing a specific JF "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
csiph-web