Esempio n. 1
0
 private void jButton2ActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton2ActionPerformed
   t.stop();
   if (win == 44) {
     ventanaFinal obj = new ventanaFinal();
     obj.setVisible(true);
     dispose();
   } else {
     if (lock == 1) {
       bomba obj = new bomba();
       obj.setVisible(true);
       dispose();
     } else {
       switch (resultado[p]) {
         case 1:
           jLabel1.setText("Pregunta 1");
           break;
         case 2:
           jLabel1.setText("Pregunta 2");
           break;
         case 3:
           jLabel1.setText("Pregunta 3");
           break;
         case 4:
           jLabel1.setText("Pregunta 4");
           break;
         case 5:
           jLabel1.setText("Pregunta 5”");
           break;
         case 6:
           jLabel1.setText("Pregunta 6");
           break;
         case 7:
           jLabel1.setText("Pregunta 7");
           break;
         case 8:
           jLabel1.setText("Pregunta 8");
           break;
         case 9:
           jLabel1.setText("Pregunta 9");
           break;
         case 10:
           jLabel1.setText("Pregunta 10");
           break;
         case 11:
           jLabel1.setText("Pregunta 11");
           break;
         case 12:
           jLabel1.setText("Pregunta 12");
           break;
         case 13:
           jLabel1.setText("Pregunta 13");
           break;
         case 14:
           jLabel1.setText("Pregunta 14");
           break;
         case 15:
           jLabel1.setText("Pregunta 15");
           break;
         case 16:
           jLabel1.setText("Pregunta 16");
           break;
         case 17:
           jLabel1.setText("Pregunta 17");
           break;
         case 18:
           jLabel1.setText("Pregunta 18");
           break;
         case 19:
           jLabel1.setText("Pregunta 19");
           break;
         case 20:
           jLabel1.setText("Pregunta 20");
           break;
         case 21:
           jLabel1.setText("Pregunta 21");
           break;
         case 22:
           jLabel1.setText("Pregunta 22");
           break;
         case 23:
           jLabel1.setText("Pregunta 23");
           break;
         case 24:
           jLabel1.setText("Pregunta 24");
           break;
         case 25:
           jLabel1.setText("Pregunta 25");
           break;
         case 26:
           jLabel1.setText("Pregunta 26");
           break;
         case 27:
           jLabel1.setText("Pregunta 27");
           break;
         case 28:
           jLabel1.setText("Pregunta 28");
           break;
         case 29:
           jLabel1.setText("Pregunta 29");
           break;
         case 30:
           jLabel1.setText("Pregunta 30");
           break;
         case 31:
           jLabel1.setText("Pregunta 31");
           break;
         case 32:
           jLabel1.setText("Pregunta 32");
           break;
         case 33:
           jLabel1.setText("Pregunta 33");
           break;
         case 34:
           jLabel1.setText("Pregunta 34");
           break;
         case 35:
           jLabel1.setText("Pregunta 35");
           break;
         case 36:
           jLabel1.setText("Pregunta 36");
           break;
         case 37:
           jLabel1.setText("Pregunta 37");
           break;
         case 38:
           jLabel1.setText("Pregunta 38");
           break;
         case 39:
           jLabel1.setText("Pregunta 39");
           break;
         case 40:
           jLabel1.setText("Pregunta 40");
           break;
         case 41:
           jLabel1.setText("Pregunta 41");
           break;
         case 42:
           jLabel1.setText("Pregunta 42");
           break;
         case 43:
           jLabel1.setText("Pregunta 43");
           break;
         case 44:
           jLabel1.setText("Pregunta 44");
           break;
         case 45:
           jLabel1.setText("Pregunta 45");
           break;
       }
     }
     p++;
     win++;
     t.start();
   } // GEN-LAST:event_jButton2ActionPerformed
 }
Esempio n. 2
0
 private void jButton1ActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton1ActionPerformed
   bomba obj = new bomba();
   obj.setVisible(true);
   dispose();
 } // GEN-LAST:event_jButton1ActionPerformed