< prev index next >

src/java.desktop/macosx/classes/com/apple/laf/AquaProgressBarUI.java

Print this page

        

@@ -202,21 +202,21 @@
         final Point renderLocation = getStringPlacement(g2, progressString, x, y, width, height);
         final Rectangle oldClip = g2.getClipBounds();
 
         if (isHorizontal()) {
             g2.setColor(selectionForeground);
-            SwingUtilities2.drawString(progressBar, g2, progressString, renderLocation.x, renderLocation.y);
+            getTextUIDrawing().drawString(progressBar, g2, progressString, renderLocation.x, renderLocation.y);
         } else { // VERTICAL
             // We rotate it -90 degrees, then translate it down since we are going to be bottom up.
             final AffineTransform savedAT = g2.getTransform();
             g2.transform(AffineTransform.getRotateInstance(0.0f - (Math.PI / 2.0f), 0, 0));
             g2.translate(-progressBar.getHeight(), 0);
 
             // 0,0 is now the bottom left of the viewable area, so we just draw our image at
             // the render location since that calculation knows about rotation.
             g2.setColor(selectionForeground);
-            SwingUtilities2.drawString(progressBar, g2, progressString, renderLocation.x, renderLocation.y);
+            getTextUIDrawing().drawString(progressBar, g2, progressString, renderLocation.x, renderLocation.y);
 
             g2.setTransform(savedAT);
         }
 
         g2.setClip(oldClip);
< prev index next >