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> References: 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: 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 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,