Maas F. Turner wrote:The long process would run in the current thread and the ProgressBar in a new thread.
If this refers to Swing, you have that back to front. The JProgressBar needs to be addressed and queried on the EDT. A long running task needs to be launched in a background Thread, optiamlly handled by a SwingWorker.
Check out the tutorial linked from the JProgressBar API and another section of the same tutorial titled Concurrency in Swing.
And welcome to the Ranch!