private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
        // TODO add your handling code here:
        String number = jTextField1.getText();
        if (!number.equals("") && !word(number) && Integer.parseInt(number)<=12) {
            numberOfProcess = Integer.parseInt(jTextField1.getText().trim());
            pauseTime = new int[numberOfProcess];
            Vector vec2 = new Vector();
            for (int i = 1; i <= numberOfProcess; i++) {
                vec2.add(i - 1, String.format("Process %d", i));
            }
            serviceTime = new long[numberOfProcess];
            blockProcesses = new boolean[numberOfProcess];
            for (int i = 0; i < numberOfProcess; i++) {
                blockProcesses[i] = false;
            }

            Pbar[0] = jProgressBar1;
            Pbar[1] = jProgressBar2;
            Pbar[2] = jProgressBar3;
            Pbar[3] = jProgressBar4;
            Pbar[4] = jProgressBar5;
            Pbar[5] = jProgressBar6;
            Pbar[6] = jProgressBar7;
            Pbar[7] = jProgressBar8;
            Pbar[8] = jProgressBar9;
            Pbar[9] = jProgressBar10;
            Pbar[10] = jProgressBar11;
            Pbar[11] = jProgressBar12;

            PLable[0] = PLable1;
            PLable[1] = PLable2;
            PLable[2] = PLable3;
            PLable[3] = PLable4;
            PLable[4] = PLable5;
            PLable[5] = PLable6;
            PLable[6] = PLable7;
            PLable[7] = PLable8;
            PLable[8] = PLable9;
            PLable[9] = PLable10;
            PLable[10] = PLable11;
            PLable[11] = PLable12;

            jLabel6.setText("Saved");
            jLabel5.setText(String.format("Process %d", count));
            jTextField1.disable();
            jTextField2.enable();

        }else {
            JOptionPane.showMessageDialog(null, "Enter Number Less Than 12..!");
            jTextField1.setText("");
        }
    }//GEN-LAST:event_jTextField1ActionPerformed