This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Are you using an older version of Java. I believe Swing is added to the standard classes since 1.3. If you are using an older version you can add the swing classes to the classpath (I don't know what the jar was called but it exists.) Maybe it is a better idea to use a newer JDK anyway, especially if you want to use Swing.
My guess is that you're using Visual J++ or another old IDE you found the disks for. Java's come a long way since then. Visual J++ partially supports Java version 1.1, while the current version is 1.5 -- and an awful lot has changed in the many intervening years.
Visit java.sun.com to get a brand-new Java Developer's Kit.
The J2SE 1.5 API documentation still shows Swing as a javax package.
But the original swing (swing 1.0) classes were in the package com.sun.java.swing and subpackages thereof. (They weren't shipped with the Jdk either, they were a separate download) [ June 01, 2005: Message edited by: Timmy Marks ]