This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I was attempting to load a file of unknown size and wanted to use the Progress API in indeterminate mode for the duration of the loading process. I therefore tried this code: ProgressHandle handle = ProgressHandleFactory.createHandle("Loading data"); handle.switchToIndeterminate(); handle.start(); // actual loading code goes here However, it hung and did not ever reach my loading code nor did it give any warning or error message about what I might be doing wrong. I was able to correct the problem by putting the call to switchToIndeterminate() after the call to start(). The documentation does not say that a handle may be switched to indeterminate mode only when running. Therefore I cannot say whether it is a documentation of implementation problem, but fixing either would be OK with me.
Not exact duplicate but these issue will be probably fixed together *** This bug has been marked as a duplicate of bug 186636 ***