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