HTTP/2 302
server: nginx
date: Sun, 18 Jan 2026 07:27:12 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20070624181938
location: https://web.archive.org/web/20070624181938/https://swingworker.dev.java.net/
server-timing: captures_list;dur=0.872503, exclusion.robots;dur=0.024497, exclusion.robots.policy;dur=0.017964, esindex;dur=0.004956, cdx.remote;dur=16.165359, LoadShardBlock;dur=268.870910, PetaboxLoader3.resolve;dur=148.450307, PetaboxLoader3.datanode;dur=81.932435
x-app-server: wwwb-app224-dc8
x-ts: 302
x-tr: 307
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app224; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 302
server: nginx
date: Sun, 18 Jan 2026 07:27:13 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20070624181945
location: https://web.archive.org/web/20070624181945/https://swingworker.dev.java.net/
server-timing: captures_list;dur=0.676300, exclusion.robots;dur=0.035724, exclusion.robots.policy;dur=0.023468, esindex;dur=0.013068, cdx.remote;dur=26.710479, LoadShardBlock;dur=375.330474, PetaboxLoader3.resolve;dur=270.853538, PetaboxLoader3.datanode;dur=189.738092, load_resource;dur=170.517227
x-app-server: wwwb-app224-dc8
x-ts: 302
x-tr: 604
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 18 Jan 2026 07:27:13 GMT
content-type: text/html;charset=UTF-8
x-archive-orig-date: Sun, 24 Jun 2007 18:19:47 GMT
x-archive-orig-server: Apache
x-archive-orig-x-powered-by: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
x-archive-orig-pragma:
x-archive-orig-cache-control: private,max-age=0,must-revalidate
x-archive-orig-helmloginid: guest
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 24 Jun 2007 18:19:45 GMT
link:
; rel="original",
; rel="timemap"; type="application/link-format",
; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: IA-AROUND-THE-WORLD-2007-20070624175921-09583-crawling04-c/IA-AROUND-THE-WORLD-2007-20070624181942-14148-crawling01.us.archive.org.arc.gz
server-timing: captures_list;dur=0.534070, exclusion.robots;dur=0.018470, exclusion.robots.policy;dur=0.009206, esindex;dur=0.011327, cdx.remote;dur=11.627617, LoadShardBlock;dur=173.802039, PetaboxLoader3.datanode;dur=175.599972, PetaboxLoader3.resolve;dur=73.658199, load_resource;dur=80.610577
x-app-server: wwwb-app224-dc8
x-ts: 200
x-tr: 310
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
swingworker:
Get Involved
Project tools
How do I...
Notice: the projects area will undergo maintenance to enable Project Editor feature Monday, 6/25 from 7:00 pm to 7:45 pm PDT.
If you were registered and logged in , you could join this project.
When writing a multi-threaded application using Swing, there are
two constraints to keep in mind:
(refer to
How to Use Threads
for more details):
Time-consuming tasks should not be run on the Event
Dispatch Thread . Otherwise the application becomes unresponsive.
Swing components should be accessed on the Event
Dispatch Thread only.
These constraints mean that a GUI application with time intensive
computing needs at least two threads: 1) a thread to perform the lengthy
task and 2) the Event Dispatch Thread (EDT) for all GUI-related
activities. This involves inter-thread communication which can be
tricky to implement.
SwingWorker is designed for situations where you need to have a long
running task run in a background thread and provide updates to the UI
either when done, or while processing.
This project is a backport of SwingWorker included into 1.6.
The
original SwingWorker version was published back in 1998 by
Hans Muller and Kathy Walrath. Since that time a number of modified
SwingWorkers were published. The
last version we are aware of was published by Joseph Bowbeer.
Swing team got a number of request to include SwingWorker
into the swing package. In jdk1.6 javax.swing.SwingWorker
was introduced.
Please refer to the javadoc for the API
documentation and the examples.
You can download
the latest release of the SwingWorker project.