@Override
    public void setBounds(int x, int y, int width, int height) {
      super.setBounds(x, y, Math.min(width, getPreferredSize().width), height);
    }
@Override
    public void setBounds(int x, int y, int width, int height)