Hi, I'm trying to use a ProgressMonitor in my Java application, to show information during a long process, but is only visible the title and the frame of the ProgressMonitor .
I call the updateProcess procedure when user clicks on a button, but the ProgressMonitor appear only some seconds after starting updateProcess and doesn't shown or update the progress bar.
What's wrong in the code? thanks
Code:
public static void updateProcess(){
...
//code
....
ProgressMonitor progressMon=new ProgressMonitor(null, "Operation in progress...", "", 0, 3600);
progressMon.setProgress(0);
....
progressMon.setProgress(1);
progressMon.setNote("note1");
......
What's wrong in the code? thanks
Comment