void (Graphics g, String text, JComponent c, Rectangle textRect, FontMetrics metrics) { int x = textRect.x + getTextShiftOffset(); int y = textRect.y + metrics.getAscent() + getTextShiftOffset(); if (DarculaButtonUI.isDefaultButton(c)) { g.setColor(Gray.xCC); } else { g.setColor(UIManager.getColor("Button.disabledText")); } UIUtilities.drawStringUnderlineCharAt(c, g, text, -1, x, y); }