/******************************************************************************
* Copyright 1996-2014 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
******************************************************************************/

import javax.swing.*;
/**
 * Create a thread to update the progress bar.
 */

public class UpdateProgress extends Thread {

     private Object obj;
     private int currentProgressValue;

     UpdateProgress(Object obj, int currentProgressValue) {
        this.obj = obj;
	this.currentProgressValue = currentProgressValue;
     }

     public void run() {
         SwingUtilities.invokeLater(new GoodWorker(obj, currentProgressValue));
     }
}
