protected void assignToTeamAOrB(String teamType) {
		Object selectedValue = studentsCDJlst.getSelectedValue();
		String selectedStudent = null;
		int selectedIndex = 0;
		if (selectedValue == null ) {
			//warn no selected student
			JOptionPane.showMessageDialog(this, "No student selected", "No student selected", JOptionPane.WARNING_MESSAGE);
		} else {
			selectedStudent = selectedValue.toString();
			selectedIndex = studentsCDJlst.getSelectedIndex();
			studentsCDDLM.removeElementAt(selectedIndex);
			if (teamType.equals("A")) {
				teamACDDLM.addElement(selectedStudent);
				teamACDJlbl.setText("Team A(" + teamACDDLM.getSize() + "/" + userNumb + ")");
			} else if (teamType.equals("B")) {
				teamBCDDLM.addElement(selectedStudent);
				teamBCDJlbl.setText("Team B(" + teamBCDDLM.getSize() + "/" + userNumb + ")");
			}
			
		}
	}