case Label.RIGHT:
x = x + (l.getWidth() - (preserveSpaceForState +
style.getPadding(Component.LEFT) +
style.getPadding(Component.RIGHT) +
((icon != null) ? icon.getWidth() : 0) +
font.stringWidth(text))) / 2;
x = Math.max(x, l.getX() + style.getPadding(Component.LEFT) + preserveSpaceForState);
y = y + (l.getHeight() - (style.getPadding(Component.TOP) +
style.getPadding(Component.BOTTOM) +
Math.max(((icon != null) ? icon.getHeight() : 0),
fontHeight))) / 2;