Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

importing SwingWorker

Posted on 2007-12-05
12
335 Views
Last Modified: 2008-02-01
Hi,

How do you import SwingWorker? I can't compile my app, keeps complaining about this line:

import javax.swing.SwingWorker;

which I've taken from examples. I'm assuming it's because I have an old version of java or something?

Thanks
0
Comment
Question by:DJ_AM_Juicebox
  • 6
  • 4
  • 2
12 Comments
 
LVL 26

Expert Comment

by:ksivananth
ID: 20417832
you should be having Java 1.6 to use SwingWorker!
0
 
LVL 92

Expert Comment

by:objects
ID: 20417858
u can download it here

https://swingworker.dev.java.net/
0
 

Author Comment

by:DJ_AM_Juicebox
ID: 20417872
I have version 1.6, just downloaded it 1 minute ago. Is there something else I could be missing?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 26

Expert Comment

by:ksivananth
ID: 20417878
check java -version to know the verion you use for run/compile app!
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 20417881
if it is different version, make sure you have installed 1.6 successfully and the path variable is updated accordingly!
0
 

Author Comment

by:DJ_AM_Juicebox
ID: 20417884
Ok I am still pointing to javac here:

C:\Program Files\Java\jdk1.5.0_09\bin\javac.exe

but I don't have a 1.6 jdk folder, just:

    C:\Program Files\Java\jre1.6.0_03

and I don't see javac in there....
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 20417890
then you would have downloaded JRE1.6 and installed. You have to download JDK1.6...
0
 

Author Comment

by:DJ_AM_Juicebox
ID: 20417898
ok, where does one get it?
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 20417912
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 20417917
or, here you can choose from one...

http://java.sun.com/javase/downloads/?intcmp=1281
0
 

Author Comment

by:DJ_AM_Juicebox
ID: 20425362
wait - if i compile with 1.6, does that mean users that only have the 1.5.9 or whatever JDK won't be able to see my applets? I mena is this stuff backwards compatible?
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 20425376
thats correct.

if you download just swingworker class and include that with your applet then your users will not need 1.6
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question