2

ProgressMonitor progressMonitor = new ProgressMonitor(frame, "", "", 0, 100);

  • progressMonitor.setProgress(0);
  • ...
  • progressMonitor.setProgress(100);

This works fine for me, but now I want to change the title of this progress monitor. Currently its "Progress...".

Brundlefly
  • 25
  • 4

2 Answers2

5

You can set the title of the dialog window through the UIManager:

String title = "Foobar";
UIManager.put("ProgressMonitor.progressText", title);
ProgressMonitor progressMonitor = new ProgressMonitor(frame, "", "", 0, 100);
...

enter image description here

Thomas
  • 17,016
  • 4
  • 46
  • 70
-1

You can do this:

monitor.beginTask("Running Job..", IProgressMonitor.UNKNOWN);
monitor.beginTask("Job #1");

But I don't believe the actual title of the box can change.

ergonaut
  • 6,929
  • 1
  • 17
  • 47