< prev index next >
src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameBorder.java
Print this page
@@ -208,19 +208,25 @@
if (isSelected || fIsUtility) {
g.setColor(Color.lightGray);
} else {
g.setColor(Color.white);
}
- SwingUtilities2.drawString(frame, g, text, x + startXPosition + iconWidth, y + baseline + 1);
+ SwingUtilities2.getTextUIDrawing(frame)
+ .drawString(frame, g, text,
+ x + startXPosition + iconWidth,
+ y + baseline + 1);
if (isSelected || fIsUtility) {
g.setColor(selectedTextColor);
} else {
g.setColor(notSelectedTextColor);
}
- SwingUtilities2.drawString(frame, g, text, x + startXPosition + iconWidth, y + baseline);
+ SwingUtilities2.getTextUIDrawing(frame)
+ .drawString(frame, g, text,
+ x + startXPosition + iconWidth,
+ y + baseline);
g.setFont(f);
}
// sja fix x & y
final int iconYPostion = (metrics.titleBarHeight - getIconHeight(frame)) / 2;
< prev index next >