for (Iterator i = c.getTeachersDirecting().iterator(); i.hasNext(); ) {
for (Iterator i = c.getTeachers().iterator(); i.hasNext(); ) {
  protected void setValue(Object value) {  		Course c=(Course)value;  		if (value==null){  			setText("");  		}  		else{  			String prtScreen="";  			String teachers="";  			String rooms="";  			Subject subj=c.getSubject();  			if (subj!=null) {  				prtScreen=subj.getHeading();  				  				for (Iterator i = c.getTeachersDirecting().iterator(); i.hasNext(); ) {  					User user=(User) i.next();  					teachers=teachers+" "+user.getName();  				}  				teachers=teachers.trim();  				//prtScreen=prtScreen+"\r"+teachers;  				for (Iterator i = c.getRooms().iterator(); i.hasNext(); ) {  					Room room=(Room) i.next();  					rooms=rooms+" "+room.getName();  				}  				rooms=rooms.trim();  				//prtScreen=prtScreen+"\n"+rooms;  			}  			else{  				prtScreen="matiere inconnue";  			}  			prtScreen="<html>"+prtScreen+"<br>"+teachers+"<br>"+rooms+"</html>";  			setText(prtScreen);  		}  		this.setHorizontalAlignment(JLabel.CENTER);  		this.setHorizontalTextPosition(JLabel.CENTER);  		this.setVerticalAlignment(JLabel.CENTER);  		this.setVerticalTextPosition(JLabel.CENTER);  }