initNumberJcb(endCourseHourJcb, 8, 19);
initNumberJcb(endCourseHourJcb, FIRST_HOUR, LAST_HOUR);
	private void initAddModifyCourseWindow() {		teacherLabel = new JLabel("Le cours sera donn par :");		addComponent(AMCWLayout,layoutConstraints,teacherLabel,1,1,3,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(30,10,15,10));		AMCWFrame.getContentPane().add(teacherLabel);				if (teachersName == null)		    teacherCourseJcb = new JComboBox();		else		    teacherCourseJcb = new JComboBox(teachersName);				teacherPanel.setLayout(new BoxLayout(teacherPanel, BoxLayout.Y_AXIS));		teacherPanel.add(teacherCourseJcb);		teacherPanel.add(Box.createVerticalStrut(5));				addComponent(AMCWLayout,layoutConstraints,teacherPanel,4,1,2,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(20,10,15,10));		AMCWFrame.getContentPane().add(teacherPanel);				teacherPlus = new JButton("+");		teacherPlus.addActionListener(new ButtonPlusListener(teacherPlusPanel, teacherPanel, AMCWFrame, teachersName));				teacherPlusPanel.setLayout(new BoxLayout(teacherPlusPanel, BoxLayout.Y_AXIS));		teacherPlusPanel.add(teacherPlus);		teacherPlusPanel.add(Box.createVerticalStrut(5));				addComponent(AMCWLayout,layoutConstraints,teacherPlusPanel,6,1,GridBagConstraints.REMAINDER,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(20,10,15,10));		AMCWFrame.getContentPane().add(teacherPlusPanel);				if (teachersName == null) {		    teacherLabel.setEnabled(false);		    teacherCourseJcb.setEnabled(false);		    teacherPlus.setEnabled(false);		}								dateCourseTheLabel = new JLabel("le");		addComponent(AMCWLayout,layoutConstraints,dateCourseTheLabel,1,2,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(dateCourseTheLabel);				dateCourse = new JDateChooser();		addComponent(AMCWLayout,layoutConstraints,dateCourse,2,2,2,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(dateCourse);										dureeCourseDeLabel = new JLabel("de");		addComponent(AMCWLayout,layoutConstraints,dureeCourseDeLabel,1,3,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(dureeCourseDeLabel);				startCourseHourJcb = new JComboBox();		initNumberJcb(startCourseHourJcb, 8, 19);		addComponent(AMCWLayout,layoutConstraints,startCourseHourJcb,2,3,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(startCourseHourJcb);				startCourseHourLabel = new JLabel("heure");		addComponent(AMCWLayout,layoutConstraints,startCourseHourLabel,3,3,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(startCourseHourLabel);				dureeCourseALabel = new JLabel("");		addComponent(AMCWLayout,layoutConstraints,dureeCourseALabel,4,3,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(dureeCourseALabel);				endCourseHourJcb = new JComboBox();		initNumberJcb(endCourseHourJcb, 8, 19);		addComponent(AMCWLayout,layoutConstraints,endCourseHourJcb,5,3,GridBagConstraints.RELATIVE,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(endCourseHourJcb);				endCourseHourLabel = new JLabel("heure");		addComponent(AMCWLayout,layoutConstraints,endCourseHourLabel,6,3,GridBagConstraints.REMAINDER,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(endCourseHourLabel);								startCourseMinuteJcb = new JComboBox();		initMinuteJcb(startCourseMinuteJcb);		addComponent(AMCWLayout,layoutConstraints,startCourseMinuteJcb,2,4,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(startCourseMinuteJcb);				startCourseMinuteLabel = new JLabel("min");		addComponent(AMCWLayout,layoutConstraints,startCourseMinuteLabel,3,4,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(startCourseMinuteLabel);				endCourseMinuteJcb = new JComboBox();		initMinuteJcb(endCourseMinuteJcb);		addComponent(AMCWLayout,layoutConstraints,endCourseMinuteJcb,5,4,GridBagConstraints.RELATIVE,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(endCourseMinuteJcb);				endCourseMinuteLabel = new JLabel("min");		addComponent(AMCWLayout,layoutConstraints,endCourseMinuteLabel,6,4,GridBagConstraints.REMAINDER,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(endCourseMinuteLabel);								placeCourseLabel = new JLabel("dans le local ou les locaux :");		addComponent(AMCWLayout,layoutConstraints,placeCourseLabel,1,5,3,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(placeCourseLabel);				if (roomsName == null)		    placeCourseJcb = new JComboBox();		else		    placeCourseJcb = new JComboBox(roomsName);				placeCoursePanel.setLayout(new BoxLayout(placeCoursePanel, BoxLayout.Y_AXIS));		placeCoursePanel.add(placeCourseJcb);		placeCoursePanel.add(Box.createVerticalStrut(5));		addComponent(AMCWLayout,layoutConstraints,placeCoursePanel,4,5,2,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(placeCoursePanel);				placeCoursePlus = new JButton("+");		placeCoursePlus.addActionListener(new ButtonPlusListener(placeCoursePlusPanel, placeCoursePanel, AMCWFrame, roomsName));				placeCoursePlusPanel.setLayout(new BoxLayout(placeCoursePlusPanel, BoxLayout.Y_AXIS));		placeCoursePlusPanel.add(placeCoursePlus);		placeCoursePlusPanel.add(Box.createVerticalStrut(5));				addComponent(AMCWLayout,layoutConstraints,placeCoursePlusPanel,6,5,GridBagConstraints.REMAINDER,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(placeCoursePlusPanel);				if (roomsName == null) {		    placeCourseLabel.setEnabled(false);		    placeCourseJcb.setEnabled(false);		    placeCoursePlus.setEnabled(false);		}						if (type == TYPE_ADD) {			repeatCourseLabel = new JLabel("Sur combien de semaines se droulera le cours ?");			addComponent(AMCWLayout,layoutConstraints,repeatCourseLabel,1,6,5,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,15,10));			AMCWFrame.getContentPane().add(repeatCourseLabel);						repeatCourseJcb = new JComboBox();			initNumberJcb(repeatCourseJcb, 1, 30);			addComponent(AMCWLayout,layoutConstraints,repeatCourseJcb,6,6,GridBagConstraints.REMAINDER,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(5,10,15,10));			AMCWFrame.getContentPane().add(repeatCourseJcb);		}								courseEquipmentLabel = new JLabel("Le(s) matriel(s) utilis(s) :");		addComponent(AMCWLayout,layoutConstraints,courseEquipmentLabel,1,7,3,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(courseEquipmentLabel);				if (materialsName == null)		    courseEquipmentJcb = new JComboBox();		else		    courseEquipmentJcb = new JComboBox(materialsName);				courseEquipmentPanel.setLayout(new BoxLayout(courseEquipmentPanel, BoxLayout.Y_AXIS));		courseEquipmentPanel.add(courseEquipmentJcb);		courseEquipmentPanel.add(Box.createVerticalStrut(5));				addComponent(AMCWLayout,layoutConstraints,courseEquipmentPanel,4,7,2,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(courseEquipmentPanel);				courseEquipmentPlus = new JButton("+");		courseEquipmentPlus.addActionListener(new ButtonPlusListener(courseEquipmentPlusPanel, courseEquipmentPanel, AMCWFrame, materialsName));				courseEquipmentPlusPanel.setLayout(new BoxLayout(courseEquipmentPlusPanel, BoxLayout.Y_AXIS));		courseEquipmentPlusPanel.add(courseEquipmentPlus);		courseEquipmentPlusPanel.add(Box.createVerticalStrut(5));				addComponent(AMCWLayout,layoutConstraints,courseEquipmentPlusPanel,6,7,GridBagConstraints.REMAINDER,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(courseEquipmentPlusPanel);				if (materialsName == null) {		    courseEquipmentJcb.setEnabled(false);		    courseEquipmentLabel.setEnabled(false);		    courseEquipmentPlus.setEnabled(false);		}								courseFormationLabel = new JLabel("Le cours est attribu  la formation :");		addComponent(AMCWLayout,layoutConstraints,courseFormationLabel,1,8,4,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(courseFormationLabel);				courseFormationJcb = new JComboBox();		addComponent(AMCWLayout,layoutConstraints,courseFormationJcb,5,8,GridBagConstraints.REMAINDER,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(courseFormationJcb);						courseGroupLabel = new JLabel("et plus prcisment, au groupe :");		addComponent(AMCWLayout,layoutConstraints,courseGroupLabel,1,9,4,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,15,10));		AMCWFrame.getContentPane().add(courseGroupLabel);				courseGroupJcb = new JComboBox(groupsName);		addComponent(AMCWLayout,layoutConstraints,courseGroupJcb,5,9,GridBagConstraints.REMAINDER,1,1.0,0.0,GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,new Insets(5,10,15,10));		AMCWFrame.getContentPane().add(courseGroupJcb);								typeCourseLabel = new JLabel("Choisissez le type de cours :");		addComponent(AMCWLayout,layoutConstraints,typeCourseLabel,1,10,3,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,0,10));		AMCWFrame.getContentPane().add(typeCourseLabel);				magistral = new JRadioButton("Cours magistral",true);		addComponent(AMCWLayout,layoutConstraints,magistral,1,11,2,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(5,10,20,10));		AMCWFrame.getContentPane().add(magistral);				td = new JRadioButton("TD");		addComponent(AMCWLayout,layoutConstraints,td,3,11,1,1,1.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(5,10,20,10));		AMCWFrame.getContentPane().add(td);				tp = new JRadioButton("TP");		addComponent(AMCWLayout,layoutConstraints,tp,4,11,GridBagConstraints.REMAINDER,1,1.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(5,10,20,10));		AMCWFrame.getContentPane().add(tp);				ButtonGroup buttonGroup = new ButtonGroup();		buttonGroup.add(magistral);		buttonGroup.add(td);		buttonGroup.add(tp);						ok = new JButton("OK");		ok.addActionListener(new ActionOk());		addComponent(AMCWLayout,layoutConstraints,ok,5,12,GridBagConstraints.RELATIVE,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(20,10,10,10));		AMCWFrame.getContentPane().add(ok);				annuler = new JButton("Annuler");		annuler.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent arg0) {            	AMCWFrame.dispose();            }		});		addComponent(AMCWLayout,layoutConstraints,annuler,6,12,GridBagConstraints.REMAINDER,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(20,10,10,10));		AMCWFrame.getContentPane().add(annuler);	}