Icon currIcon = (isEnabled()) ? activeIcon : disabledIcon;
Icon currIcon = isEnabled() ? icon : disabledIcon;
  public boolean imageUpdate(Image img, int infoflags, int x, int y, int w,                             int h)  {    Icon currIcon = (isEnabled()) ? activeIcon : disabledIcon;    //Is this the correct way to check for image equality?    if (currIcon != null && currIcon instanceof ImageIcon)      return (((ImageIcon) currIcon).getImage() == img);    return false;  }