private synchronized void update() {

		if (progressMessage != null) {
			messageLabel.setText(progressMessage);
			progressMessage = null;
		}

		if (maxProgress != lastMaxProgress) {
			setMaxValueInProgressBar(maxProgress);
			lastMaxProgress = maxProgress;
		}

		if (progress != lastProgress) {
			setValueInProgressBar(progress);
			lastProgress = progress;
		}
	}
Sets the visibility of the progress icon

@param visible if true, display the progress icon
Ghidra/Framework/Docking/src/main/java/ghidra/util/task/TaskMonitorComponent.java