return;
}
}
protected void syncDisabledIcon() {
ResizableIcon currDisabledIcon = this.commandButton.getDisabledIcon();
ResizableIcon icon = this.commandButton.getIcon();
if ((currDisabledIcon == null)
|| (currDisabledIcon instanceof UIResource)) {
if (icon != null) {
this.commandButton.setDisabledIcon(new ResizableIconUIResource(
new FilteredResizableIcon(icon, new ColorConvertOp(
ColorSpace.getInstance(ColorSpace.CS_GRAY),
null))));
} else {
this.commandButton.setDisabledIcon(null);
}
} else {
// disabled icon coming from app code
if (icon != null) {
this.commandButton.getDisabledIcon()
.setDimension(
new Dimension(icon.getIconWidth(), icon
.getIconHeight()));
}
}
}