Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: javax.swing.Timer blocking program termination Date: Tue, 14 Jul 2015 22:18:56 -0400 Organization: A noiseless patient Spider Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 15 Jul 2015 02:21:13 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="8e164d158183579609bf09837dee5210"; logging-data="18813"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AkuUtE6G6qkierdGz2yJoLNRum8Jnrds=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 In-Reply-To: Cancel-Lock: sha1:JkuDip5NmL+h7GHVjRNTqcx1ne8= Xref: csiph.com comp.lang.java.programmer:32031 On 07/13/2015 07:03 PM, Knute Johnson wrote: > So I have this program that uses a couple of javax.swing.Timers. I > forgot to put in code to stop one of the timers yet the program would > still terminate. I have set the default close operation for the frame > to be DISPOSE_ON_CLOSE. > > What I found was that a timer of less the 1000ms would prevent an > application based on a JFrame from stopping but 1000ms or more and it > would stop just fine. > Maybe it's a feature. Doctor, it hurts when I do this.