The Swing Package
[ Home ] [ Up ] [ Introduction ] [ The Swing Package ] [ Frames ] [ Panes, Text & Fonts ] [ Colors ] [ Shapes ] [ Paint Modes ] [ Images ]

 

Browser Support

 

Today, the Swing classes may be found in the javax.swing package.

Note the javax, not java.  This is because the Java developers decided to place a number of packages -- Swing among them -- in what they term "Java extension packages" (hence the 'x').

There's some history here:

  • Swing was developed primarily for JDK 1.2 and beyond.
  • Before JDK 1.2 Beta3, the swing classes were in a Sun private Java package:
    com.sun.java.swing
  • But then Sun moved it into a different package, which is part of the Java Standard Extensions:
    javax.swing

In general, I wouldn't bother about any version of Java before 1.3.x;  more recent versions are much more stable, and support more features.

 

This page was last modified on 02 October, 2007