@Override
  public Dimension getMinimumSize() {
    Dimension size = super.getMinimumSize();
    return new Dimension(Math.min(700, size.width), size.height);
  }
@Override
  public Dimension getMinimumSize()