public void fillComponents(int taskID, JList userList, JList userOnTaskLlist, JTextField textFieldTaskName, JComboBox comboBoxType, JComboBox comboBoxStatus,
            JTextField comboBoxCustomer, JComboBox comboBoxTaskLeader, JDateChooser dateChooserExpectedStart, JDateChooser dateChooserExpectedEnd,
            JTextField textFieldTime, JComboBox comboBoxPriority, JTextArea textAreaDescription) throws SQLException, IOException {

        Task t = getSelectedTask(taskID);

        textFieldTaskName.setText(t.getTaskName());
        comboBoxType.setSelectedItem(t.getType());
        comboBoxStatus.setSelectedItem(t.getStatus());
        comboBoxCustomer.setText(t.getCustomer().getCustomerID() + "");
        comboBoxTaskLeader.setSelectedIndex((t.getUser().getUserID()) - 1);
        textFieldTime.setText(t.getEstimatedtime() + "");
        comboBoxPriority.setSelectedItem(t.getPriority());
        textAreaDescription.setText(t.getDescription());
        dateChooserExpectedStart.setDate(t.getStartDate());
        dateChooserExpectedEnd.setDate(t.getEndDate());

        fillAndRemoveFromUserLists(userList, userOnTaskLlist, t.getUserOnTask());
    }