code: public void updateProgress(int progress, int maxProgress) {
  		int increment = (int)((double)(stopValue - startValue) * ((double)maxProgress / (double)progress));
  		progressBar.setValue(startValue + increment);
  	}
docs: /* (non-Javadoc)
  @see org.deckfour.xes.util.MonitoredInputStream.ProgressListener#updateProgress(int, int)