private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        pesanKeluarSiswa.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent e) {
                row = pesanKeluarSiswa.getSelectedRow();
                if (row != -1) {
                    sinyalHapus = 1;
                    jLabel15.setText("ke    : ");
                    jLabel43.setText("Dosen Pembimbing");
                    Pesan pesan = recordKeluar.get(row);
                    jLabel44.setText(pesan.getTgl());
                    jLabel45.setText(pesan.getJam());
                    isiBukaPesan.setText(pesan.getIsi());
                    tempPengirim = onUsed;
                    tempPenerima = pesan.getIdOrang();
                    bacaPsnMasukMhs.show();
                }
            }
        });
        pesanMasukSiswa.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent e) {
                row = pesanMasukSiswa.getSelectedRow();
                if (row != -1) {
                    sinyalHapus = 0;
                    Pesan pesan = recordMasuk.get(row);
                    jLabel15.setText("dari  : ");
                    jLabel43.setText("Dosen Pembimbing");
                    jLabel44.setText(pesan.getTgl());
                    jLabel45.setText(pesan.getJam());
                    isiBukaPesan.setText(pesan.getIsi());
                    tempPengirim = pesan.getIdOrang();//untuk dosen
                    tempPenerima = onUsed;
                    bacaPsnMasukMhs.show();


                }
            }
        });
        try {
            // TODO add your handling code here:
            recordMasuk = prosespesan.getAllMasuk(onUsed, "siswa", 1);
            recordKeluar = prosespesan.getAllKeluar(onUsed, "siswa", 1);
            isiTabelMasuk("siswa");
            isiTabelKeluar("siswa");
            CardLayout cad = (CardLayout) konten.getLayout();
            cad.show(konten, "pesan");


        } catch (SQLException ex) {
            Logger.getLogger(FormInduk.class
                    .getName()).log(Level.SEVERE, null, ex);
        }

    }