< prev index next >

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

Print this page

        

@@ -58,11 +58,11 @@
         if (AquaMnemonicHandler.isMnemonicHidden()) {
             mnemIndex = -1;
         }
 
         g.setColor(l.getForeground());
-        SwingUtilities2.drawStringUnderlineCharAt(l, g, s, mnemIndex, textX, textY);
+        getTextUIDrawing().drawStringUnderlineCharAt(l, g, s, mnemIndex, textX, textY);
     }
 
     /**
      * Paint clippedText at textX, textY with background.lighter() and then
      * shifted down and to the right by one pixel with background.darker().

@@ -79,11 +79,11 @@
         final Color background = l.getBackground();
 
         // if our background is still something we set then we can use our happy background color.
         if (background instanceof UIResource) {
             g.setColor(getDisabledLabelColor(l));
-            SwingUtilities2.drawStringUnderlineCharAt(l, g, s, accChar, textX, textY);
+            getTextUIDrawing().drawStringUnderlineCharAt(l, g, s, accChar, textX, textY);
         } else {
             super.paintDisabledText(l, g, s, textX, textY);
         }
     }
 
< prev index next >