Lightweights--How?
Container restrictions:
- Be sure to double-buffer the container, or suffer the flicker
- The painting and event dispatching mechanism for lightweight components is handled by the Container class. This means that the painting of lightweight components is triggered from within the paint() method of its container. Therefore, if a lightweight component is placed inside of a Container instance where the paint() method has been overridden but fails to call super.paint(), the paint() method of the lightweight component will never be called.
- Thus, be sure to call super.paint()!