public void fillEdT(WeekTable wt) {
		
		
		if (wt != null)
		for (Slot s : wt.getSlots())	{
			

				JPanel jpnl = new JPanel();
				jpnl.setLayout(new BoxLayout(jpnl, BoxLayout.Y_AXIS));
				
				jpnl.setPreferredSize(new Dimension(dayWidth - 7, (int)(s.getDuration().toMin() * panelHeight / 690) - 3));
				jpnl.setBackground(Color.LIGHT_GRAY);
				jpnl.setBorder(BorderFactory.createLineBorder(Color.black, 1));
				
				if (s instanceof Lesson)	{
					
					jpnl.setBackground(Color.white);
					JLabel field = new JLabel();
					field.setHorizontalTextPosition(SwingConstants.CENTER);
					field.setText(((Lesson) s).getField().toString());
					jpnl.add(field);
					
					if (! (wt.getOwner() instanceof Teacher))	{
						JLabel teach = new JLabel(((Lesson) s).getTeacher().getName());
						teach.setHorizontalTextPosition(SwingConstants.RIGHT);
						jpnl.add(teach);
					}
					
					if (!(wt.getOwner() instanceof Group))	{
						JLabel group = new JLabel(((Lesson) s).getStudents().toString());
						group.setHorizontalTextPosition(SwingConstants.LEFT);
						jpnl.add(group);
					}
					
					if (!(wt.getOwner() instanceof Classroom))	{
						JLabel place = new JLabel(((Lesson) s).getPlace().toString());
						place.setHorizontalTextPosition(SwingConstants.CENTER);
						jpnl.add(place);
					}
				}	
				
				days[s.getBegin().getDay()].add(jpnl);
				
				if (s.getEnd().getHour() == 12)	{
					jpnl = new JPanel();
					jpnl.setPreferredSize(new Dimension(dayWidth - 7, 120 * panelHeight / 690));
					days[s.getBegin().getDay()].add(jpnl);
				}
				
		}
		/*
		for (int i = 0; i < days.length; i++) {
			if(i == 0) {
				JPanel empty = new JPanel();
				empty.setPreferredSize(new Dimension(dayWidth - 7, 17));
				days[i].add(empty);
				
				
				JPanel panel = new JPanel();
				panel.setPreferredSize(new Dimension(dayWidth - 7, 97));
				panel.setBackground(Color.white);
				panel.setBorder(BorderFactory.createLineBorder(Color.black, 1));
				days[i].add(panel);

				JPanel panel2 = new JPanel();
				panel2.setPreferredSize(new Dimension(dayWidth - 7, 47));
				panel2.setBackground(Color.white);
				panel2.setBorder(BorderFactory.createLineBorder(Color.black, 1));
				days[i].add(panel2);
				
				JPanel panel3 = new JPanel();
				panel3.setPreferredSize(new Dimension(dayWidth - 7, 97));
				panel3.setBackground(Color.white);
				panel3.setBorder(BorderFactory.createLineBorder(Color.black, 1));
				days[i].add(panel3);
				
				JPanel panel4 = new JPanel();
				panel4.setPreferredSize(new Dimension(dayWidth - 7, 97));
				panel4.setBackground(Color.white);
				panel4.setBorder(BorderFactory.createLineBorder(Color.black, 1));
				days[i].add(panel4);
				JPanel panel5 = new JPanel();
				panel5.setPreferredSize(new Dimension(dayWidth - 7, 97));
				panel5.setBackground(Color.white);
				panel5.setBorder(BorderFactory.createLineBorder(Color.black, 1));
				days[i].add(panel5);
			}
		}*/
	}