if (gfx != null) return gfx;  Container parent = getParent(); if (parent != null)
if (gfx == null && parent != null)
  public Graphics getGraphics()  {    if (peer != null)      {			Graphics gfx = peer.getGraphics();			if (gfx != null)				return gfx;			// create graphics for lightweight:			Container parent = getParent();        if (parent != null)          {				gfx = parent.getGraphics();				Rectangle bounds = getBounds();				gfx.setClip(bounds);				gfx.translate(bounds.x, bounds.y);				return gfx;			}		}		return null;	}