예제 #1
0
  /*------------------------------------------------------------------*/
  void stepProgressBar() {
    long timeStamp = System.currentTimeMillis();

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