@Override
	public void setIndeterminate(boolean indeterminate) {
		//
		// Note: if the caller of this method is not on the Swing thread (like when on
		//       a task thread), then we do not want to invokeAndWait(), as this prevents
		//       background tasks from working while the TaskDialog attempts to give them
		//       a chance to do so.  In other words, the background thread will end up
		//       blocking instead of working, which defeats our attempts to never show
		//       a task dialog for fast background tasks.
		//
		isIndeterminate.set(indeterminate);
		Swing.runIfSwingOrRunLater(() -> {
			boolean newValue = isIndeterminate.get();
			progressBar.setIndeterminate(newValue);
			progressBar.setStringPainted(!newValue);
		});
	}
Sets the <code>indeterminate</code> property of the progress bar,
which determines whether the progress bar is in determinate
or indeterminate mode.
<p>
An indeterminate progress bar continuously displays animation
indicating that an operation of unknown length is occurring.
By default, this property is <code>false</code>.
Some look and feels might not support indeterminate progress bars;
they will ignore this property.

@see JProgressBar
Ghidra/Framework/Docking/src/main/java/ghidra/util/task/TaskMonitorComponent.java