e.printStackTrace();
		public void itemStateChanged(ItemEvent event) {			if (ItemEvent.SELECTED == event.getStateChange()) {				try {				    jcbGroupEDT.removeAllItems();				    jcbGroupEDT.setEnabled(false);				    if (!noLoadTimetable && mainFrame.getModel().getTimetable() != null) {					    mainFrame.getModel().setTimetable(null);					    mainFrame.getModel().fireCloseTimetable(false);				    }					if (!TYPE_VIDE.equals(event.getItem())) {					    boolean show = false;					    Long id = ((ComboBoxItem)event.getItem()).getId();					    TimetableFilter filter = new TimetableFilter();					    if (TYPE_FORMATION.equals(jcbTypeEDT.getSelectedItem())) {							filter.setFormation(new Formation(id));							show = true;						} else if (TYPE_ENSEIGNANT.equals(jcbTypeEDT.getSelectedItem())) {							filter.setTeacher(new User(id));							show = true;					    } else if (TYPE_LOCAL.equals(jcbTypeEDT.getSelectedItem())) {							filter.setRoom(new Room(id));							show = true;					    } else if (TYPE_MATERIEL.equals(jcbTypeEDT.getSelectedItem())) {							filter.setMaterial(new Material(id));							show = true;					    } else if (TYPE_GROUPE.equals(jcbTypeEDT.getSelectedItem())) {							GroupFilter groupFilter = new GroupFilter();							groupFilter.setIdFormation(id);							Collection groups = DaoManager.getGroupDao().getGroups(groupFilter);							jcbGroupEDT.removeAll();							jcbGroupEDT.addItem("");							for (Iterator i = groups.iterator(); i.hasNext(); ) {							    Group group = (Group) i.next();							    jcbGroupEDT.addItem(new ComboBoxItem(group.getHeading(), group.getIdGroup()));							}							jcbGroupEDT.setEnabled(true);					    }					    					    if (!noLoadTimetable && show) {					        filter.setBeginPeriod(mainFrame.getBeginPeriod());							filter.setEndPeriod(mainFrame.getEndPeriod());							Timetable timetable = DaoManager.getTimetableDao().getTimetable(filter);							mainFrame.getModel().fireShowTimetable(timetable);					    }					}				} catch (Exception e) {					JOptionPane.showMessageDialog(null, "Une erreur interne est survenue", "Erreur", JOptionPane.ERROR_MESSAGE);				}			}		}