Note that the Swing package is defined in the javax package. In early versions of the JDK, all Java packages were defined in the java package. Now, many packages are defined in the javax package. The Swing package is one of them.
Share this highlighthttp://www.safaribooksonline.com/a/java-programming/26539/