((WorkThread)Thread.currentThread()).setProgressMaximum(value);
Thread thread = Thread.currentThread(); if(thread instanceof WorkThread) ((WorkThread)thread).setProgressMaximum(value);
	public void setProgressMaximum(int value)	{		((WorkThread)Thread.currentThread()).setProgressMaximum(value);	}