private void setAllSizesToZero() {
    Dimension zeroDimension = new Dimension(0, 0);
    setMinimumSize(zeroDimension);
    setPreferredSize(zeroDimension);
    setMaximumSize(zeroDimension);
  }
private void setAllSizesToZero()