public Component getTableCellRendererComponent (JTable table, Object value, boolean selected, 
													boolean focused, int row, int column){
		super.getTableCellRendererComponent(table, value, selected, focused, row, column);	
		if(column == 5 || column == 6) { // Colors the weekends red
			setBackground(new Color(255, 220, 220)); 
		}else{ // Colors the rest white
			setBackground(Color.WHITE);
		}
		Iterator<ToDo> it = tdModel.getMonth(month, year); // Gets the ToDos year and month
		Calendar cal = new GregorianCalendar(Locale.GERMAN);
		Calendar cal2 = new GregorianCalendar(year, month,1);
		int fD = cal2.get(GregorianCalendar.DAY_OF_WEEK);
		if(fD > 1){ // Converts to European week standard.
			fD--;
		}else{
			fD = 7;
		}
		// Colors the cells with ToDos yellow
		while(it.hasNext()){
			ToDo t = it.next();
			Date due = t.getDue();
			cal.setTime(due);
			int d = cal.get(Calendar.DAY_OF_MONTH);
			int day = fD +d;
			d = (day-2) % 7;
			int w = (day-2) / 7;
			if((d) == column && (w) == row){
				setBackground(new Color(255, 255, 195));
			}
		}
		return this;
	}