protected void paintCheckIcon(Graphics g, MenuItemLayoutHelper lh,
                                MenuItemLayoutHelper.LayoutResult lr,
                                Color holdc, Color foreground) {
    if (lh.getCheckIcon() != null) {
      ButtonModel model = lh.getMenuItem().getModel();
      if (model.isArmed() || (lh.getMenuItem() instanceof JMenu
                              && model.isSelected())) {
        g.setColor(foreground);
      }
      else {
        g.setColor(holdc);
      }
      if (lh.useCheckAndArrow()) {
        lh.getCheckIcon().paintIcon(lh.getMenuItem(), g,
                                    lr.getCheckRect().x, lr.getCheckRect().y);
      }
      g.setColor(holdc);
    }
  }
protected void paintCheckIcon(Graphics g, MenuItemLayoutHelper lh,
                                MenuItemLayoutHelper.LayoutResult lr,
                                Color holdc, Color foreground)