protected PrecisionDimension calculateTextSize(int wHint){
  Font f=getFont();
  String theText=getAppliedText(wHint);
  String[] split=forceSplit(theText);
  PrecisionDimension size=D.setSize(0,0);
  final int textCase=getTextCase();
  for (  String s : split) {
    String t=getShowText(s,textCase);
    Dimension d=getLooseTextSize(t,f);
    if (size.height > 0)     size.height+=getLineSpacing();
    size.height+=d.height;
    size.width=Math.max(size.width,d.width);
  }
  return size;
}

protected PrecisionDimension calculateTextSize ( int wHint ) { Font f = getFont ( ) ; String theText = getAppliedText ( wHint ) ; String [ ] split = forceSplit ( theText ) ; PrecisionDimension size = D . setSize ( 0 , 0 ) ; final int textCase = getTextCase ( ) ; for ( String s : split ) { String t = getShowText ( s , textCase ) ; Dimension d = getLooseTextSize ( t , f ) ; if ( size . height > 0 ) size . height += getLineSpacing ( ) ; size . height += d . height ; size . width = Math . max ( size . width , d . width ) ; } return size ; }
calculates and returns the size of the label ' s text .
