JAVA SWING GUI TUTORIAL

AWT relies on ”peer-based” rendering to achieve platform independence. But subtle difference in platforms resulted in inconsistent look-and-feel, and platform-dependent bugs. Swing avoids these problems by using a non-peer-based approach, with the result it may be slower than AWT. To recover the look-and-feel of each platform (Windows, Motif, etc), it allows programs to specify the look-and-feel. It also has a new look-and-feel, called ”Metal”. Note that AWT is not deprecated as a result of Swing.
Read more