private void btnBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarActionPerformed
        if(txtBuscar.getText().equals("")){
            cargarDatos();
        }else{
           if (rbCodigo.isSelected()) {
                buscarPorCodigo(txtBuscar.getText());    
            } else if (rbNombre.isSelected()) {
                buscarPorNombre(txtBuscar.getText());
            } else {
                cargarDatos();
            } 
        }
        

    }//GEN-LAST:event_btnBuscarActionPerformed