code: protected void setForeground(Color newColor)
      {
          if (foreground == null || !foreground.equals(newColor))
          {
              foreground = new Color(newColor.getRGB());
              invalidateCache();
          }
      }
docs: Sets the foreground.
  
  @param newColor
  the new foreground