private void buttonGetCustomerIDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonGetCustomerIDActionPerformed

        textFieldCustomer.setText(control.getCustomerIDToString());
        if (!textFieldCustomer.isEditable()) {
             JOptionPane.showMessageDialog(null, "Du kan ikke hente kunder ud når du laver en delopgave", "Fejlrapport", JOptionPane.WARNING_MESSAGE);
        } else {
            textFieldCustomer.setText(control.getCustomerIDToString());
        }
    }//GEN-LAST:event_buttonGetCustomerIDActionPerformed