@Override
  public void paint(Graphics g) {
    FontMetrics fm = g.getFontMetrics(labels[0].getFont());
    Dimension dimension = new Dimension(fm.stringWidth("00") + 8, 1);
    setMinimumSize(dimension);
    setPreferredSize(dimension);
    super.paint(g);
  }
@Override
  public void paint(Graphics g)