private void setDefaultLead() {
        DefaultComboBoxModel<Anstalld> dcbm = (DefaultComboBoxModel<Anstalld>) cbLead.getModel();
        Anstalld lead = null;
        try {
            String query = "select projektledare.aid from projektledare"
                    + " join spelprojekt on spelprojekt.aid=projektledare.aid where spelprojekt.sid=" + selectedSpelprojekt;
            String aid = DB.fetchSingle(query);
            if (aid != null) {
                lead = new Anstalld(Integer.parseInt(aid));
            }
        } catch (NumberFormatException | InfException e) {
            e.getMessage();
        }
        //Insert a no chosen choise aswell.
        dcbm.insertElementAt(new Anstalld(-1) {
            @Override
            public String toString() {
                return "-Ingen projektledare-";
            }
        }, 0);
        //set predefined position to the cb
        if (lead != null) {
            int pos = -1;
            boolean found = false;
            for (int i = 0; i < dcbm.getSize() && !found; i++) {
                if (dcbm.getElementAt(i).getAid() == lead.getAid()) {
                    pos = i;
                }
            }
            cbLead.setSelectedIndex(pos);
        } else { //if nothing was found, prechoose  "no predefined lead"
            cbLead.setSelectedIndex(0);
        }
    }