void (Graphics g, String s, int accChar, int textX, int textY) { UISettings.setupAntialiasing(g); if (s.indexOf('\n') == -1) BasicGraphicsUtils.drawString(g, s, accChar, textX, textY); else { String[] strs = splitStringByLines(s); int height = g.getFontMetrics().getHeight(); // Only the first line can have the accel char BasicGraphicsUtils.drawString(g, strs[0], accChar, textX, textY); for (int i = 1; i < strs.length; i++) { g.drawString(strs[i], textX, textY + (height * i)); } } }