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


Groups > comp.lang.java.programmer > #17457

Re: Can you get this SwingWorker code to work more than once

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From clusardi2k@aol.com
Newsgroups comp.lang.java.programmer
Subject Re: Can you get this SwingWorker code to work more than once
Date Thu, 9 Aug 2012 09:11:13 -0700 (PDT)
Organization http://groups.google.com
Lines 11
Message-ID <4e08dd61-cd74-4ec1-b568-aef1645d3758@googlegroups.com> (permalink)
References <d88d5a10-6b44-4917-9bc3-dee0b5d745f1@googlegroups.com> <k00m3o$uos$1@dont-email.me>
NNTP-Posting-Host 198.151.13.60
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1344528673 26963 127.0.0.1 (9 Aug 2012 16:11:13 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Thu, 9 Aug 2012 16:11:13 +0000 (UTC)
In-Reply-To <k00m3o$uos$1@dont-email.me>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=198.151.13.60; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT
User-Agent G2/1.0
X-Received-Bytes 1651
Xref csiph.com comp.lang.java.programmer:17457

Show key headers only | View raw


On Thursday, August 9, 2012 11:48:04 AM UTC-4, Eric Sosman wrote:
> On 8/9/2012 11:24 AM, clusardi2k@aol.com wrote: > Here is a project that works 
> perfectly only the first time. [...] Quoth the JavaDoc: "SwingWorker is only 
> designed to be executed once. Executing a SwingWorker more than once will not 
> result in invoking the doInBackground method twice." If you want to do a 
> background task N times, you'll need N instances of SwingWorker, one per task 
> execution. -- Eric Sosman esosman@ieee-dot-org.invalid

How do you modify the code my last post to do that.

Thank you,

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


Thread

Can you get this SwingWorker code to work more than once clusardi2k@aol.com - 2012-08-09 08:24 -0700
  Re: Can you get this SwingWorker code to work more than once Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-09 11:48 -0400
    Re: Can you get this SwingWorker code to work more than once clusardi2k@aol.com - 2012-08-09 08:55 -0700
      Re: Can you get this SwingWorker code to work more than once markspace <-@.> - 2012-08-09 09:11 -0700
      Re: Can you get this SwingWorker code to work more than once Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-09 14:29 -0400
    Re: Can you get this SwingWorker code to work more than once clusardi2k@aol.com - 2012-08-09 09:11 -0700
      Re: Can you get this SwingWorker code to work more than once Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-09 14:31 -0400
  Re: Can you get this SwingWorker code to work more than once Knute Johnson <nospam@knutejohnson.com> - 2012-08-09 09:18 -0700

csiph-web