public void doStuff() {
        try {
            if (radioCreditSlip.isSelected()) {
                if (radioSpecificDate.isSelected()) {
                    Date startDate = pickerSpecificDate.getDate();
                    cal.setTime(pickerSpecificDate.getDate());
                    cal.add(Calendar.DATE, 1);
                    Date endDate = cal.getTime();
                    System.out.println(startDate + " | " + endDate);
                    String title = "Credit Slip Transactions - Report of " + sdf2.format(pickerSpecificDate.getDate());
                    InputStream path = getClass().getResourceAsStream("/resources/jasper/FuelMartReportsSlip.jrxml");
                    generateReport(startDate, endDate, title, path);
                } else if (radioSpecificRange.isSelected()) {
                    Calendar cal1 = Calendar.getInstance();
                    Calendar cal2 = Calendar.getInstance();
                    cal1.setTime(pickerSpecificRangeStart.getDate());
                    cal2.setTime(pickerSpecificRangeEnd.getDate());
                    if (!cal1.before(cal2)) {
                        JOptionPane.showMessageDialog(this, "Unable to generate Report. Invalid Date Range!", "Lanka Fuel Mart Sys.", javax.swing.JOptionPane.ERROR_MESSAGE);
                        return;
                    }
                    Date startDate = pickerSpecificRangeStart.getDate();
                    Date endDate = pickerSpecificRangeEnd.getDate();
                    System.out.println(startDate + " | " + endDate);
                    String title = "Credit Slip Transactions - Report of " + sdf2.format(pickerSpecificRangeStart.getDate())
                            + " to " + sdf2.format(pickerSpecificRangeEnd.getDate());
                    InputStream path = getClass().getResourceAsStream("/resources/jasper/FuelMartReportsSlip.jrxml");
                    generateReport(startDate, endDate, title, path);
                }
            }
            if (radioCreditCard.isSelected()) {
                if (radioSpecificDate.isSelected()) {
                    Date startDate = pickerSpecificDate.getDate();
                    cal.setTime(pickerSpecificDate.getDate());
                    cal.add(Calendar.DATE, 1);
                    Date endDate = cal.getTime();
                    System.out.println(startDate + " | " + endDate);
                    String title = "Credit Card Transactions - Report of " + sdf2.format(pickerSpecificDate.getDate());
                    InputStream path = getClass().getResourceAsStream("/resources/jasper/FuelMartReportsCard.jrxml");
                    generateReport(startDate, endDate, title, path);
                } else if (radioSpecificRange.isSelected()) {
                    Calendar cal1 = Calendar.getInstance();
                    Calendar cal2 = Calendar.getInstance();
                    cal1.setTime(pickerSpecificRangeStart.getDate());
                    cal2.setTime(pickerSpecificRangeEnd.getDate());
                    if (!cal1.before(cal2)) {
                        JOptionPane.showMessageDialog(this, "Unable to generate Report. Invalid Date Range!", "Lanka Fuel Mart Sys.", javax.swing.JOptionPane.ERROR_MESSAGE);
                        return;
                    }
                    Date startDate = pickerSpecificRangeStart.getDate();
                    Date endDate = pickerSpecificRangeEnd.getDate();
                    System.out.println(startDate + " | " + endDate);
                    String title = "Credit Card Transactions - Report of " + sdf2.format(pickerSpecificRangeStart.getDate())
                            + " to " + sdf2.format(pickerSpecificRangeEnd.getDate());
                    InputStream path = getClass().getResourceAsStream("/resources/jasper/FuelMartReportsCard.jrxml");
                    generateReport(startDate, endDate, title, path);
                }
            }
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, "Error occurred while Generating the Report! Error : " + ex.getMessage(), "Lanka Fuel Mart Sys.", javax.swing.JOptionPane.ERROR_MESSAGE);
            Logger.getLogger(ReportsCenter.class.getName()).log(Level.SEVERE, null, ex);
        }
    }