progress.setMaximum(total);
localProgress.setMaximum(total);
	public void setMaximum(final int total)	{		SwingUtilities.invokeLater(new Runnable()		{			public void run()			{				progress.setMaximum(total);			}		});	}