public void setWarning(boolean warning) {
        if (this.warning != warning) {
            this.warning = warning;
            if (isEnabled()) {
                updateLook();
            }
        }
    }
public void setWarning(boolean warning)