Method which renders the text of the current menu item.
ButtonModel model = menuItem.getModel();
Color oldColor = g.getColor();
if(model.isEnabled() &&
(model.isArmed() || (menuItem instanceof JMenu &&
model.isSelected()))) {
g.setColor(selectionForeground); // Uses protected field.
}
WindowsGraphicsUtils.paintText(g, menuItem, textRect, text, 0);
g.setColor(oldColor);