Esempio n. 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 */
Esempio n. 2
0
 /*------------------------------------------------------------------*/
 void resetProgressBar() {
   completed = 0;
   lastTime = System.currentTimeMillis();
   progressBar.show(2.0);
 } /* end resetProgressBar */
Esempio n. 3
0
 /*------------------------------------------------------------------*/
 void cleanUpProgressBar() {
   completed = 0;
   progressBar.show(2.0);
 } /* end cleanUpProgressBar */