protected Dimension getPreferredElementSize() {
    Dimension size = getLabelSize(new Insets(0, getHgap(), 0, getHgap()));
    JBInsets.addTo(size, getInsets());
    return size;
  }
protected Dimension getPreferredElementSize()