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


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

Re: JFrame.DISPOSE_ON_CLOSE

From markspace <-@.>
Newsgroups comp.lang.java.gui
Subject Re: JFrame.DISPOSE_ON_CLOSE
Date 2012-11-02 15:40 -0700
Organization A noiseless patient Spider
Message-ID <k71i4u$jvs$1@dont-email.me> (permalink)
References <k71hp3$is5$1@dont-email.me>

Show all headers | 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