if (UIManager.get("CheckBox.gradient") != null) MetalUtils.paintGradient(g, x, y, getIconWidth(), getIconHeight(), SwingConstants.VERTICAL, "CheckBox.gradient");
  public void paintIcon(Component c, Graphics g, int x, int y)  {    border.paintBorder(c, g, x, y, getIconWidth(), getIconHeight());    JCheckBox cb = (JCheckBox) c;    if (cb.isSelected())      drawCheck(c, g, x, y);  }