Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5267

Re: JFrame.DISPOSE_ON_CLOSE

Path csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.gui
Subject Re: JFrame.DISPOSE_ON_CLOSE
Date Fri, 02 Nov 2012 15:40:29 -0700
Organization A noiseless patient Spider
Lines 15
Message-ID <k71i4u$jvs$1@dont-email.me> (permalink)
References <k71hp3$is5$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Fri, 2 Nov 2012 22:40:30 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="20476"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/V3yb3XXH4wRrYvqD9RUR3mRiMfJPjAog="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
In-Reply-To <k71hp3$is5$1@dont-email.me>
Cancel-Lock sha1:KJCVePG97Uj9FNbTT6iNamWWvmM=
Xref csiph.com comp.lang.java.gui:5267

Show key headers only | View raw


On 11/2/2012 3:34 PM, Knute Johnson wrote:
> Hey guys:
>
> I was working on a small project and put my usual closing code in on the
> JFrame menu and the program doesn't end.  I think I remember it doing
> that before but maybe I'm losing my mind again.


No it's EXIT_ON_CLOSE if you want to quit.

I guess dispose might work but if you have any running non-daemon 
threads it isn't going to terminate.


Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

JFrame.DISPOSE_ON_CLOSE Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2012-11-02 15:34 -0700
  Re: JFrame.DISPOSE_ON_CLOSE Joerg Meier <joergmmeier@arcor.de> - 2012-11-02 23:40 +0100
  Re: JFrame.DISPOSE_ON_CLOSE markspace <-@.> - 2012-11-02 15:40 -0700
  Re: JFrame.DISPOSE_ON_CLOSE Roedy Green <see_website@mindprod.com.invalid> - 2012-11-06 21:27 -0800

csiph-web