630 |
textRect.y |
textRect.y |
631 |
+ fm.getAscent()); |
+ fm.getAscent()); |
632 |
else |
else |
633 |
BasicGraphicsUtils.drawString(g, text, 0, textRect.x, |
BasicGraphicsUtils.drawString(g, text, 0, textRect.x, |
634 |
textRect.y + fm.getAscent()); |
textRect.y + fm.getAscent()); |
635 |
} |
} |
636 |
} |
} |
637 |
|
|
638 |
/** |
/** |
771 |
FontMetrics fm = g.getFontMetrics(acceleratorFont); |
FontMetrics fm = g.getFontMetrics(acceleratorFont); |
772 |
|
|
773 |
if (menuItem.isEnabled()) |
if (menuItem.isEnabled()) |
774 |
g.setColor(acceleratorForeground); |
g.setColor(acceleratorForeground); |
775 |
else |
else |
776 |
// FIXME: should fix this to use 'disabledForeground', but its |
// FIXME: should fix this to use 'disabledForeground', but its |
777 |
// default value in BasicLookAndFeel is null. |
// default value in BasicLookAndFeel is null. |