/** * This method sets the minimum value of the scrollbar. * * @param minimum The minimum value of the scrollbar. */ public void setMinimum(int minimum) { if (minimum != getMinimum()) { model.setMinimum(minimum); fireAdjustmentValueChanged( AdjustmentEvent.ADJUSTMENT_VALUE_CHANGED, AdjustmentEvent.TRACK, minimum); } }
/** * Sets the minimum value for the <code>JProgressBar</code>. The value is stored in the * component's <code>model</code> (see {@link #getModel()}). If the new value is different to the * old value, a {@link ChangeEvent} is sent to the model's registered listeners. In turn, this * triggers a call to {@link #fireStateChanged()} which will send a <code>ChangeEvent</code> to * this component's registered listeners. * * @param minimum the minimum value. * @see #getMinimum() */ public void setMinimum(int minimum) { model.setMinimum(minimum); }