October 11, 2010 at 3:22 PM
A Lightweight Component is a particular class of visual Component, so it can be used just like any other Component (i.e., Canvas, List, Choice, etc.). Lightweight Components have two distinctions over other Component classes. (Note: the term Heavyweight Component' is generally used to mean any Component that is not Lightweight.) Lightweight Components are transparent and you have control over z-ordering. The Lightweight component is "lighter" in that it requires no native data-structures or peer classes.
A heavyweight component is one that is associated with its own native screen resource (commonly known as a peer).The Abstract Window Toolkit supports GUI Java programming. It is a portable GUI library for stand-alone applications and/or applets. The Abstract Window Toolkit provides the connection between your application and the native GUI. The AWT provides a high level of abstraction for your Java program since it hides you from the underlying details of the GUI your program will be running on.