if (iLineCount > 1) { double dWidth, dMaxWidth = 0; for (int i = 0; i < iLineCount; i++) { r2d = tla[i].getBounds(); dWidth = r2d.getWidth(); if (dWidth > dMaxWidth) { dMaxWidth = dWidth; } } return dMaxWidth; } else {  return tla[0].getBounds().getWidth(); } }
if ( iLineCount > 1 ) { double dWidth, dMaxWidth = 0; for ( int i = 0; i < iLineCount; i++ ) { r2d = tla[i].getBounds( ); dWidth = r2d.getWidth( ); if ( dWidth > dMaxWidth ) { dMaxWidth = dWidth; } }   return Math.max( 0, dMaxWidth ); } else { double w = tla[0].getBounds( ).getWidth( );   return Math.max( 0, w ); } }
    private final double stringWidth()    {        Rectangle2D r2d;        if (iLineCount > 1)        {            double dWidth, dMaxWidth = 0;            for (int i = 0; i < iLineCount; i++)            {                r2d = tla[i].getBounds();                dWidth = r2d.getWidth();                if (dWidth > dMaxWidth)                {                    dMaxWidth = dWidth;                }            }            return dMaxWidth;        }        else        {            //return fm.stringWidth((String) oText);            return tla[0].getBounds().getWidth();        }    }