/*------------------------------------------------------------------*/ void stepProgressBar() { long timeStamp = System.currentTimeMillis(); completed = completed + 1; if (50L < (timeStamp - lastTime)) { lastTime = timeStamp; progressBar.show((double) completed / (double) processDuration); } } /* end stepProgressBar */
/*------------------------------------------------------------------*/ void resetProgressBar() { completed = 0; lastTime = System.currentTimeMillis(); progressBar.show(2.0); } /* end resetProgressBar */
/*------------------------------------------------------------------*/ void cleanUpProgressBar() { completed = 0; progressBar.show(2.0); } /* end cleanUpProgressBar */