JComboBox teacherGroupsJcB = new JComboBox(teachersName);
JComboBox teacherGroupsJcB = new JComboBox(teachersName);*/
    private void initTypeCoursePanel(JPanel panel, int type) {    	GridBagLayout layout = new GridBagLayout();        GridBagConstraints layoutConstraints = new GridBagConstraints();    	panel.setLayout(layout);    	    	JLabel typeCourseLabel = new JLabel();    	    	JLabel nbGroupsLabel;    	nbGroupsLabel = new JLabel("Nombre de groupes :");    	    	JLabel nameGroupLabel = new JLabel("Groupe1 :");    	    	JLabel teacherGroupsLabel;    	teacherGroupsLabel = new JLabel("Enseignant :");    	    	if (groupsName == null) {    	    groupsName = new String[formation.getGroups().size()+1];    	    groups = new Group[formation.getGroups().size()+1];    	        	    groupsName[0] = "";    	    int j = 1;    	    for (Iterator i = formation.getGroups().iterator(); i.hasNext(); ++j) {    	        groups[j] = (Group) i.next();    	        groupsName[j] = groups[j].getHeading();    	    }    	}    	JComboBox nameGroupJcb = new JComboBox(groupsName);    	JComboBox teacherGroupsJcB = new JComboBox(teachersName);    	    	/*    	JPanel nameGroupsPanel = new JPanel();    	JPanel chooseNameGroupsPanel = new JPanel();    	JPanel teacherGroupsPanel = new JPanel();    	JPanel chooseTeacherGroupsPanel = new JPanel();    	*/    	    	switch(type) {	    	case 1:	    	    typeCourseLabel.setText("Cours magistraux :");	    	    nbGroupsMag = new JComboBox();	    	    initNumberJcb(nbGroupsMag, 1, 10);	    	    //nbGroupsMag.addItemListener(new NbHourJcbListener(AMFWFrame, AMFWLayout, layoutConstraints, panel, type));	        	addComponent(layout,layoutConstraints,nbGroupsMag,8,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(7,10,7,10));	        	panel.add(nbGroupsMag);	    	    break;	        case 2:	            typeCourseLabel.setText("Travaux dirigs :");	            nbGroupsTd = new JComboBox();	    	    initNumberJcb(nbGroupsTd, 1, 10);	    	    //nbGroupsTd.addItemListener(new NbHourJcbListener(AMFWFrame, AMFWLayout, layoutConstraints, panel, type));	        	addComponent(layout,layoutConstraints,nbGroupsTd,8,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(7,10,7,10));	        	panel.add(nbGroupsTd);	            break;	        case 3:	            typeCourseLabel.setText("Travaux pratiques :");	            nbGroupsTp = new JComboBox();	    	    initNumberJcb(nbGroupsTp, 1, 10);	    	    //nbGroupsTp.addItemListener(new NbHourJcbListener(AMFWFrame, AMFWLayout, layoutConstraints, panel, type));	        	addComponent(layout,layoutConstraints,nbGroupsTp,8,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(7,10,7,10));	        	panel.add(nbGroupsTp);	            break;    	}    	    	addComponent(layout,layoutConstraints,typeCourseLabel,1,1,3,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(15,10,7,10));    	panel.add(typeCourseLabel);    	        	addComponent(layout,layoutConstraints,nbGroupsLabel,4,1,4,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,7,10));    	panel.add(nbGroupsLabel);    	    	    	/*nbGroupsJcb.addItemListener(new NbHourJcbListener(AMFWFrame, AMFWLayout, layoutConstraints, panel, type));    	addComponent(layout,layoutConstraints,nbGroupsJcb,4,2,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(7,10,7,10));    	panel.add(nbGroupsJcb);*/    	        	/*nameGroupsPanel.setLayout(new BoxLayout(nameGroupsPanel, BoxLayout.Y_AXIS));    	nameGroupsPanel.add(nameGroupLabel);    	nameGroupsPanel.add(Box.createVerticalStrut(13));    	addComponent(layout,layoutConstraints,nameGroupsPanel,1,3,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(7,10,15,10));    	panel.add(nameGroupsPanel);    	    	chooseNameGroupsPanel.setLayout(new BoxLayout(chooseNameGroupsPanel, BoxLayout.Y_AXIS));    	chooseNameGroupsPanel.add(nameGroupJcb);    	chooseNameGroupsPanel.add(Box.createVerticalStrut(5));    	addComponent(layout,layoutConstraints,chooseNameGroupsPanel,2,3,2,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(7,10,15,10));    	panel.add(chooseNameGroupsPanel);    	    	teacherGroupsPanel.setLayout(new BoxLayout(teacherGroupsPanel, BoxLayout.Y_AXIS));    	teacherGroupsPanel.add(teacherGroupsLabel);    	teacherGroupsPanel.add(Box.createVerticalStrut(13));    	addComponent(layout,layoutConstraints,teacherGroupsPanel,6,3,2,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(7,10,15,10));    	panel.add(teacherGroupsPanel);    	       	chooseTeacherGroupsPanel.setLayout(new BoxLayout(chooseTeacherGroupsPanel, BoxLayout.Y_AXIS));    	chooseTeacherGroupsPanel.add(teacherGroupsJcB);    	chooseTeacherGroupsPanel.add(Box.createVerticalStrut(5));    	addComponent(layout,layoutConstraints,chooseTeacherGroupsPanel,8,3,2,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(7,10,15,10));    	panel.add(chooseTeacherGroupsPanel);*/    }