// We use a special ButtonPainter for Dialog which dynamically
// computes the margins based on the atual space used by the
// Dialog font glyphs.
if ("dialog".equalsIgnoreCase(_getFontName(requestedProperties)))
{
ImmInsets insets = BlafImageUtils.__getDialogPadding();
// We want to have a total top margin of 3 pixels from the
// top of the tallest glyph in the font and a bottom margin
// of 3 pixels beneath the base line.
// needs to be at least 3 from the bottom to see access