public static int computeStringWidth(FontMetrics fm,String str){
  return SwingUtilities2.stringWidth(null,fm,str);
}

public static int computeStringWidth ( FontMetrics fm , String str ) { return SwingUtilities2 . stringWidth ( null , fm , str ) ; }
compute the width of the string using a font with the specified " metrics " ( sizes ) .
