private static Icon currentIcon(AbstractButton b)
static Icon currentIcon(AbstractButton b)
  private static Icon currentIcon(AbstractButton b)  {    Icon i = b.getIcon();    ButtonModel model = b.getModel();    if (model.isPressed() && b.getPressedIcon() != null)      i = b.getPressedIcon();    else if (model.isRollover())      {        if (b.isSelected() && b.getRolloverSelectedIcon() != null)          i = b.getRolloverSelectedIcon();        else if (b.getRolloverIcon() != null)          i = b.getRolloverIcon();      }        else if (b.isSelected())      {        if (b.isEnabled() && b.getSelectedIcon() != null)          i = b.getSelectedIcon();        else if (b.getDisabledSelectedIcon() != null)          i = b.getDisabledSelectedIcon();      }    else if (! b.isEnabled() && b.getDisabledIcon() != null)      i = b.getDisabledIcon();    return i;  }