private void jButtongetArrivalsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtongetArrivalsActionPerformed
        if ("".equals(jXDatePickergetArrival.getEditor().getText()) || "".equals(jXDatePickergetDeparture.getEditor().getText())) {
            JOptionPane.showMessageDialog(rootPane, "Make sure both arrival and departure date are entered and in the correct format");
        } else {
            if (jXDatePickergetArrival.getDate().before(jXDatePickergetDeparture.getDate())) {
                dflBooking.removeAllElements();
                DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
                jXDatePickergetArrival.setFormats(dateFormat);
                jXDatePickergetDeparture.setFormats(dateFormat);
                String arrival = dateFormat.format(jXDatePickergetArrival.getDate()).toString();
                String departure = dateFormat.format(jXDatePickergetDeparture.getDate()).toString();
                b = con.getBookingList(arrival, departure);
                if (!b.isEmpty()) {
                    for (int i = 0; i < b.size(); i++) {
                        dflBooking.addElement(b.get(i).toString());
                    }
                } else {
                    jLabelStatusBooking.setText("Could not get bookings!");
                }
                //Reset the transaction.
                con.resetBooking();
            } else {
                JOptionPane.showMessageDialog(rootPane, "Make sure arrival date is before departure date");
            }
        }
    }//GEN-LAST:event_jButtongetArrivalsActionPerformed