What is this SwingWorker thing?

I'm trying to upgrade an application to use concurrency, but am having a problem loading SwingWorker.

I tried to compile the ProgressBarDemo, but got an error saying "SwingWorker cannot be resolved to a type."

So, I've been looking everywhere to find this SwingWorker class. It's included in the 1.6.0 JDK, but I'm not ready to use that yet as most of my users only have the 1.4.2 JRE.

There seems to be documentation all over for this SwingWorker class, but does it work with 1.4.2? If so, how can I get ahold of it? I downloaded the latest 1.4.2 JDK, but it's not included.

Should I even be using SwingWorker, or should I go with normal threads?

Thanks,

-Ben

Message was edited by:

codecontractor

[759 byte] By [codecontractora] at [2007-10-3 10:13:36]
# 1
Use google to search for "SwingWorker.java".
camickra at 2007-7-15 5:33:59 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks, I guess I needed SwingWorker 3...It took a while to find the old documentation for SwingWorker 3, but for those people who find this thread, this is where I found it: http://java.sun.com/products/jfc/tsc/articles/threads/threads2.html
codecontractora at 2007-7-15 5:33:59 > top of Java-index,Desktop,Core GUI APIs...