Asad,
javax.swing is a package, not a class. Therefore, either you need to type:
import java.swing.*;
or individual classes like:
import java.swing.JFrame;
import java.swing.JLable;
KB
--
------------------------------------------------------------------------
This email is certified to be Spam free by Spam Marshall
You don't pay to get spam, why pay to clean it?
Visit
http://www.spammarshall.com to create an account for free
<http://www.spammarshall.com>
------------------------------------------------------------------------
Asad Khan wrote:
Hi,
I am using DrJava, and I am writing a program that has the following
statement:
import javax.swing;
It gives me this error when compiled:
File: C:\Program Files\DrJava\CustomJFrame.java [line: 1]
Error: package javax does not exist
I did set my classpath variable to:
c:\j2sdk1.4.2\lib\tools.jar;C:\j2sdk1.4.2_01\src\j avax
where C:\j2sdk1.4.2_01\src\javax is where javax is located.
What am I doing wrong?