private void btBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btBuscarActionPerformed
        Turma turma = new Turma();

        String codprocurado = "";

//        if (this.rbBuscarTurmaId.isSelected()) {
//
//            turma.setId(Integer.parseInt(tfId.getText().trim()));
//            codprocurado = tfId.getText();
//        }
        try {
//            new HibernateDao().retrieve(codprocurado);
        } catch (Exception ex) {
            Logger.getLogger(CadastroTurmas.class.getName()).log(Level.SEVERE, null, ex);
        }



        tfId.setText(String.valueOf(turma.getId()));
        tfDescricao.setText(turma.getDescricao());
        tfhorarioInicio.setText(turma.getHorarioInicio().toString());
        tfhorarioFim.setText(turma.getHorariofim().toString());
        diasaula = turma.getDiaAula();


        if (diasaula.indexOf("Segunda") >= 0) {
            cbSegundaFeira.setSelected(true);
        }
        if (diasaula.indexOf("Terca") >= 0) {
            cbTercaFeira.setSelected(true);
        }
        if (diasaula.indexOf("Quarta") >= 0) {
            cbQuartaFeira.setSelected(true);
        }
        if (diasaula.indexOf("Quinta") >= 0) {
            cbQuintaFeira.setSelected(true);
        }
        if (diasaula.indexOf("Sexta") >= 0) {
            cbSextaFeira.setSelected(true);
        }
        if (diasaula.indexOf("Sabado") >= 0) {
            cbSabado.setSelected(true);
        }
        if (diasaula.indexOf("Domingo") >= 0) {
            cbDomingo.setSelected(true);
        }

        /* turma.setId(Integer.parseInt(tfId.getText().trim()));
         turma.setDescricao(tfDescricao.getText().trim());
         turma.setPiscina(Integer.parseInt(tfcodPiscina.getText().trim()));
         turma.setProfessor(Integer.parseInt(tfcodProfessor.getText().trim()));
         turma.setHorarioInicio(tfhorarioInicio.getText().trim());
         turma.setHorarioFim(tfhorarioFim.getText().trim());
         turma.setDiaAula(diasaula);
         */



    }//GEN-LAST:event_btBuscarActionPerformed