@SuppressWarnings("unchecked")
	protected void assignTeamRep() {
		teamRepDLM.removeAllElements();
		Object teamRepO = teamMemberSTRJlst.getSelectedValue();
		String teamRepName = null;
		if (teamRepO != null) {
			teamRepName = teamRepO.toString();
			teamRepDLM.addElement(teamRepName);
		}
		String[] teamRepValue = debateSelected.getTeamReps();
		if (teamRepName != null) {
			if ( teamType.equals(TEAMA)) {
				teamRepValue[0] = teamRepName;
			} else {
				teamRepValue[1] = teamRepName;
			}
			 
		}
		
		debateSelected.setTeamReps(teamRepValue);
		if (debate.editDebate(debateSelected)){
			JOptionPane.showMessageDialog(setTeamRepJfme, "You have successfully edited the Team Rep", "successfully", JOptionPane.WARNING_MESSAGE);
			getTeamMemberRoles();
			setTeamRepJfme.dispose();
		} else {
			JOptionPane.showMessageDialog(setTeamRepJfme, "You have failed edited the Team Rep", "failed", JOptionPane.WARNING_MESSAGE);
		}
		
	}

	/**
	 * Team leader set the team rep
	 */
	@SuppressWarnings({ "unused", "unchecked" }