Lightweight Components--What?
Let’s suppose you need a new widget in Java--something not currently found in the AWT.
Perhaps one would use a Canvas or Panel to create the new widget. (This was the only option under JDK 1.02.) The paint() method in either of these would provide the mechanism for rendering the new component.