else {    String oldText = this.getText(); this.setText(" "); Dimension d = super.getPreferredSize(); this.setText(oldText); return d; }
  public Dimension getPreferredSize()  {    return super.getPreferredSize();  }