Component Creation: Tips
When adding a component to a visible container, one needs to explicitly tell the AWT to create peer resources.
The method invalidate() method can be invoked on the object, but is usually called on the container.
Invoking validate() has a ripple effect, whereby every component in the container gets validated as well.
Example: when adding components to an Applet object, you call validate() on the Applet, which creates peers for all the components in the Applet.