Exemple #1
0
 private void DisplayBtnActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_DisplayBtnActionPerformed
   // TODO add your handling code here:
   int tmp = q.size(); // measuring storage
   if (q.size() > 5) { // warning attendants if there is over 5 vehicles
     DisplayTA.setText("Help Needed");
     DisplayTA.append("\n" + q.display());
   } else { // letting the attendants know how many vehclces are to be washed
     DisplayTA.setText(
         "There are " + tmp + " vehicles to be washed:"); // shows the number of vehicles
   }
 } // GEN-LAST:event_DisplayBtnActionPerformed