@Override
  public void paintIcon(Component component, Graphics g, int i, int j) {
    int iconWidth = getIconWidth();
    int iconHeight = getIconHeight();

    GraphicsConfig config = GraphicsUtil.setupAAPainting(g);
    g.setColor(getIconColor());

    int width = getColorWidth();
    int height = getColorHeight();
    int arc = getArc();
    int x = i + (iconWidth - width) / 2;
    int y = j + (iconHeight - height) / 2;

    g.fillRoundRect(x, y, width, height, arc, arc);

    if (myBorderColor != null) {
      g.setColor(myBorderColor);
      g.drawRoundRect(x, y, width, height, arc, arc);
    }
    config.restore();
  }
@Override
  public void paintIcon(Component component, Graphics g, int i, int j)