question: public void update ( Graphics g ) { if ( isShowing ( ) ) { if ( ! ( peer instanceof LightweightPeer ) ) { g . clearRect ( 0 , 0 , width , height ) ; } paint ( g ) ; } }
target:  Updates the container.  This forwards the update to any lightweight components that are children of this container.  If this method is reimplemented, super.update(g) should be called so that lightweight components are properly rendered.  If a child component is entirely clipped by the current clipping setting in g, update() will not be forwarded to that child.