o botão nao gera o relatorio diario, era suposto fazer isso
protected void listar(){
if(jtData_inicial.getText().equals(" / / ")){
JOptionPane.showMessageDialog(this, "Preencha o campo data inicial.");
jtData_inicial.requestFocus();
}else if(jtData_final.getText().equals(" / / ")){
JOptionPane.showMessageDialog(this, "Preencha o campo data final.");
jtData_final.requestFocus();
}else{
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
Date datainicial = null;
Date datafinal = null;
try {
datainicial = new SimpleDateFormat("dd/MM/yyyy").parse(jtData_inicial.getText());
datafinal = new SimpleDateFormat("dd/MM/yyyy").parse(jtData_final.getText());
} catch (ParseException ex) {
Logger.getLogger(RelatorioFinanceiro.class.getName()).log(Level.SEVERE, null, ex);
}
String dataInicial = new SimpleDateFormat("yyyy-MM-dd 00:00:00").format(datainicial);
String dataFinal = new SimpleDateFormat("yyyy-MM-dd 23:59:59").format(datafinal);
VendaDAO vendaDAO = new VendaDAO();
vendas = vendaDAO.listarVenda(dataInicial, dataFinal);
mostrarVendas(vendas);
}
}
https://drive.google.com/open?id=0B7zkPSg50i-3ZEdSUXlCXzgyQlk
https://drive.google.com/open?id=0B7zkPSg50i-3U2UtTnktbGlkdjQ