private void drawComponent(Graphics paramGraphics, Component paramComponent, Rectangle paramRectangle)
  {
    if (paramComponent.isVisible())
    {
      ImageComponent localImageComponent;
      if ((paramComponent instanceof ImageComponent))
      {
        localImageComponent = (ImageComponent)paramComponent;
        if (localImageComponent.getImage() != null)
        {
          localImageComponent.deliverImagePaintedEvent();

          paramGraphics.drawImage(localImageComponent.getImage(), paramRectangle.x, paramRectangle.y, localImageComponent);

          return;
        }

      }
      else if ((paramComponent instanceof ImageComposite))
      {
        ImageComposite localImageComposite = (ImageComposite)paramComponent;
        ImageComponent[] arrayOfImageComponent = localImageComposite.getImageComponents();
        if ((arrayOfImageComponent != null) && (arrayOfImageComponent.length > 0))
        {
          for (int i = arrayOfImageComponent.length - 1; i >= 0; i--)
          {
            localImageComponent = arrayOfImageComponent[i];

            if (localImageComponent.getImage() == null)
            {
              continue;
            }
            localImageComponent.deliverImagePaintedEvent();

            paramGraphics.drawImage(localImageComponent.getImage(), paramRectangle.x, paramRectangle.y, localImageComponent);
          }
          return;
        }

      }
      else
      {
        paramComponent.paint(paramGraphics);
      }
    }
  }