tpbolon

java_for

Jun 21st, 2020
888
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
  2.         // TODO add your handling code here:
  3.         for (int angka = 10; angka >= 1; angka--) {
  4.             CmbAngka.addItem(String.valueOf(angka));
  5.             if (angka==5) {
  6.                 break;
  7.             }
  8.         }
  9.     }//GEN-LAST:event_formWindowActivated
  10.  
  11.     private void BtnTampil1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnTampil1ActionPerformed
  12.         // TODO add your handling code here:
  13.         for (int ganjil = 1; ganjil <= 10; ganjil++) {
  14.             CmbGanjil.addItem(String.valueOf(ganjil));
  15.             ganjil=ganjil+1;
  16.         }
  17.     }//GEN-LAST:event_BtnTampil1ActionPerformed
RAW Paste Data