private void ayoMasukActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ayoMasukActionPerformed
        // TODO add your handling code here:
        nim = idMasuk.getText();
        nip = idMasuk.getText();
        if (idMasuk.getText().length() != 0 && passMasuk.getText().length() != 0) {
            if (posmas.periksaMasuk(idMasuk.getText(), passMasuk.getText(), sinyalemen) == true) {
                peringatanMasuk.hide();
                CardLayout cad = (CardLayout) induk.getLayout();
                if (sinyalemen == 0) {
                    try {
                        // TODO add your handling code here:
                        recordPekanMhs = cpm.getAll(nim);
                        mhs = cm.getData(nim);



                    } catch (SQLException ex) {
                        Logger.getLogger(FormInduk.class
                                .getName()).log(Level.SEVERE, null, ex);
                    }
                    isiTabeldataNilaiMhs();
                    cad.show(induk, "menu");
                }
                if (sinyalemen == 1) {
                    kelolaBaru kb = new kelolaBaru();
                    try {
                        dosenisme = kb.getData(nip);


                    } catch (SQLException ex) {
                        Logger.getLogger(FormInduk.class
                                .getName()).log(Level.SEVERE, null, ex);
                    }
                    cad.show(induk, "kaprodi");
                }
                if (sinyalemen == 2) {
                    try {
                        bimbinganDosen.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
                            public void valueChanged(ListSelectionEvent e) {
                                row = bimbinganDosen.getSelectedRow();
                                if (row != -1) {
                                    sinyalHapus = 1;
                                    jLabel15.setText("ke    : ");
                                    jLabel43.setText("Dosen Pembimbing");
                                    Mahasiswa m = recordTemanKelompok.get(row);
                                    mhs = m;
                                    try {
                                        recordPekanMhs = cpm.getAll(nip, m.getNim());


                                    } catch (SQLException ex) {
                                        Logger.getLogger(FormInduk.class
                                                .getName()).log(Level.SEVERE, null, ex);
                                    }
                                    isiTabelPekanMhs();
                                    namaMhsNilai.setText(m.getNama());
                                    nilaiMhs.setSize(769, 380);
                                    double total = 0, count = 0;
                                    for (pekanMhs p : recordPekanMhs) {
                                        total += Integer.parseInt(p.getNilai());
                                        count++;
                                    }
                                    total /= count;
                                    nilaiTotal.setText("Nilai total = " + total);
                                    nilaiMhs.show();
                                }
                            }
                        });
                        recordTemanKelompok = cd.getAllBinaan(nip);


                    } catch (SQLException ex) {
                        Logger.getLogger(FormInduk.class
                                .getName()).log(Level.SEVERE, null, ex);
                    }
                    try {
                        dosenisme = cd.getData(nip);


                    } catch (SQLException ex) {
                        Logger.getLogger(FormInduk.class
                                .getName()).log(Level.SEVERE, null, ex);
                    }
                    dosenExist = true;
                    isiTabelBimbingan();
                    cad.show(induk, "dosen");

                }
                if (sinyalemen == 3) {
                    try {
                        adminisme = ca.getData(nip);


                    } catch (SQLException ex) {
                        Logger.getLogger(FormInduk.class
                                .getName()).log(Level.SEVERE, null, ex);
                    }
                    cad.show(induk, "admin");
                }
                onUsed = idMasuk.getText();
            } else {
                peringatanMasuk.show();
            }
        }
    }