< prev index next >

src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifPopupMenuUI.java

Print this page

        

@@ -80,11 +80,11 @@
         }
         FontMetrics fm = c.getFontMetrics(titleFont);
         int         stringWidth = 0;
 
         if (title!=null) {
-            stringWidth += SwingUtilities2.stringWidth(c, fm, title);
+            stringWidth += getTextUIDrawing().getStringWidth(c, fm, title);
         }
 
         if (d.width < stringWidth) {
             d.width = stringWidth + 8;
             Insets i = c.getInsets();
< prev index next >