Font f = getFont(); FontMetrics fm = getFontMetrics(f);
Font f = this.getFont(); FontMetrics fm = this.getFontMetrics(f);
	  public Dimension getPreferredSize() {	    Font f = getFont();	    FontMetrics fm = getFontMetrics(f);	    return new Dimension(0, fm.getHeight());	  }