Swing vs AWT
Features
AWT (Pros & Cons)
Some components may not function at all on some platforms. There is a much smaller set of AWT components available, thus placing the burden on the programmer to create his or her own AWT-based components. |
Swing (Pros & Cons)
components since they are not limited by the native peers that AWT uses. Sun puts much more energy into making Swing robust that can automatically have the look and feel of any OS platform (Microsoft Windows, Solaris, Macintosh, etc.). It also makes it easier to make global changes to your Java programs that provide greater accessibility (like picking a hi-contrast color scheme or changing all the fonts in all dialogs, etc.). |
they may not look like their native counterparts. |
Swing Class Hierachy :
JComponent
class derived directly from Container, is the root class for most of
UI component of Swing components.



