public void createQuickTask(JTextField textFieldCustomer, JComboBox comboBoxType, JComboBox comboBoxTaskLeader, JTextField textFieldtimeSpent, JTextArea textAreaDescription) throws SQLException, IOException, ParseException {
        Customer customer = null;
        Type type = null;
        Statuss status = null;
        User user = null;

        if (textFieldCustomer.getText().isEmpty() || textFieldtimeSpent.getText().isEmpty() || textAreaDescription.getText().isEmpty()) {
            JOptionPane.showMessageDialog(null, "Der skal angives en kunde, brugt tid samt en kommentar", "Fejlrapport", JOptionPane.WARNING_MESSAGE);
        } else {
            String comment = textAreaDescription.getText();
            int timeSpent = Integer.parseInt(textFieldtimeSpent.getText());

            for (int i = 0; i < Controller.customerList.size(); i++) {
                if (Controller.customerList.get(i).getCustomerID() == Integer.parseInt(textFieldCustomer.getText())) {
                    customer = Controller.customerList.get(i);
                }
            }

            for (int i = 0; i < Controller.typeList.size(); i++) {
                if (Controller.typeList.get(i).getTypeName().equals(comboBoxType.getSelectedItem().toString())) {
                    type = Controller.typeList.get(i);
                }
            }

            status = Controller.statusList.get(3);

            user = getUserByUserName(comboBoxTaskLeader);

            Task task = new Task(
                    type.getTypeName(),
                    type,
                    status,
                    customer,
                    user,
                    getCurrentDate(),
                    getCurrentDate(),
                    0,
                    1,
                    "");

            dbHandler.createQuickTask(task);
            createNewTimeSpentOnQuickTask(comboBoxTaskLeader, timeSpent, comment);
        }
    }