int ty = y + (height - th) / 2 + ta;
g.drawString(text, cx, ty);
if (mnemonic) {
int imnemonic = getInteger(component, "mnemonic", -1);
if ((imnemonic != -1) && (imnemonic < text.length())) {
int mx = cx + fm.stringWidth(text.substring(0, imnemonic));
g.drawLine(mx, ty + 1, mx + fm.charWidth(text.charAt(imnemonic)), ty + 1);
}
}
if (underline) { // for link button
g.drawLine(cx, ty + 1, cx + tw, ty + 1);