code: public synchronized ProgressBar setMin(int min) {
          if(min > max) {
              setMax(min);
          }
          if(min > value) {
              setValue(min);
          }
          if(this.min != min) {
              this.min = min;
              invalidate();
          }
          return this;
      }
docs: Updates the <i>minimum</i> value of this progress bar. If the current <i>maximum</i> and/or <i>value</i> are
  smaller than this new <i>minimum</i>, they are automatically adjusted so that the range is still valid.
  @param min New <i>minimum</i> value to assign to this progress bar
  @return Itself