updateProgressValue(progressId, progress.getValue() + (forward?1:-1));
updateProgressValue(progressId, jProgress.getValue() + (forward?1:-1));
				public void run() {					boolean forward = true;					while (! interrupted() ) {						if (progress.getValue() >= progress.getMaximum()) {							forward = false;						} else if (progress.getValue() <= progress.getMinimum()) {							forward = true;						}						updateProgressValue(progressId, progress.getValue() + (forward?1:-1));						try {							sleep(500);						} catch (InterruptedException e) {}					}				}