synchronized (this) { this.count = 0; this.goal = goal; }  SwingUtilities.invokeLater(new Runnable() { public void run() { int goal = getGoal(); stageNameLabel.setText(stageName); countValueLabel.setText("0/" + goal); progressBar.setMaximum(goal); progressBar.setValue(0);
synchronized (this) { this.count = 0; this.goal = goal; }  SwingUtilities.invokeLater(new Runnable() { public void run() { int goal = getGoal(); stageNameLabel.setText(stageName); countValueLabel.setText("0/" + goal); progressBar.setMaximum(goal); progressBar.setValue(0); } });
	private void beginStage(final String stageName, final int goal) {	    synchronized (this) {		this.count = 0;		this.goal = goal;	    }	    	    SwingUtilities.invokeLater(new Runnable() {		public void run() {		    int goal = getGoal();		    stageNameLabel.setText(stageName);		    countValueLabel.setText("0/" + goal);		    progressBar.setMaximum(goal);		    progressBar.setValue(0);		}	    });	}