private void sendMailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendMailActionPerformed
        // TODO add your handling code here:
        Dosen d = new Dosen();
        try {
            d = cm.getDataDepe(nim);
            this.loadPesan("siswa", 1);


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

        if (mailContent.getText().length() != 0) {
            Pesan pesan = new Pesan();
            pesan.setIsi(mailContent.getText());
            String dosenPenerima = d.getNip();
            try {
                pesan.setTgl(this.showDateNow(0));
                pesan.setProto(this.showDateNow(1));
                pesan.setJam(this.showTimeNow());
                prosespesan.siswaKirimDosen(onUsed, dosenPenerima, pesan);
                mailContent.setText("");
                this.loadPesan("siswa", 1);
                newMail.hide();
                newMail.dispose();


            } catch (SQLException ex) {
                Logger.getLogger(FormInduk.class
                        .getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            JOptionPane.showMessageDialog(mailContent, "isi pesan tidak boleh kosong");
        }
    }