private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        if (time == null) {
            JOptionPane.showMessageDialog(null, "Por favor, selecione uma data para pesquisar");
            return;
        }
        Calendar cal = Calendar.getInstance();
        cal.setTime(time);
        int day = cal.get(Calendar.DAY_OF_MONTH);
        int month = cal.get(Calendar.MONTH);
        int year = cal.get(Calendar.YEAR);
        try {
            if(totalRecebido.isSelected()){
                    resultado.setText(String.valueOf(fac.totalRecebido(year,month,day)));   
            }else if (totalPago.isSelected()){
                    resultado.setText(String.valueOf(fac.numeroTicketPago(year,month,day)));
            }else if (totalSemPagamento.isSelected()) {
                    resultado.setText(String.valueOf(fac.numeroTicketsLiberadosSemPagamento(year,month,day)));
            }
        } catch (CancelaDAOException ex) {
                Logger.getLogger(GerencialTicket.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton1ActionPerformed