@Override
      public void paintIcon(Component c, Graphics g, int x, int y) {
        if (expanded != null) control.paint(c, g, x, y, getIconWidth(), getIconHeight(), expanded, selected.get());
      }
@Override
      public void paintIcon(Component c, Graphics g, int x, int y)