@Override
      public Dimension getPreferredSize() {
        final Dimension size = super.getPreferredSize();
        if (size.height > 250) {
          size.height = 250;
        }
        return size;
      }
@Override
      public Dimension getPreferredSize()