default:
part = Part.WP_CLOSEBUTTON;
break;
}
Skin skin = xp.getSkin(this, part);
skin.paintSkin(g, 0, 0, getWidth(), getHeight(), State.DISABLED);
}
else if (style == VISTA) {
// This needs to be improved to actually paint proper Vista icons. However, this is difficult
// as Vista Aero package makes the buttons semi transparent. CraigM:26/05/2008.
target.paintIcon(this, g, 0, 0);