public CalendarDrawArea (Year year, int X, int Y)
	
	{
		boxes = new ArrayList <Box>();
		Calendar currentDate = Calendar.getInstance();
		int m = currentDate.get(Calendar.MONTH);
		int d = currentDate.get(Calendar.DATE);
		currentYear = year;
		currentMonth = year.getMonths().get(m);
		currentDay = currentMonth.getDays().get(d-1);
		cursor = new Box(-1);
		cursor.setDayStored(currentDay);
		cursor.setMonthStored(currentMonth);
		cursor.setYearStored(currentYear);
		CalendarProject.setInformationPanel(cursor, CalendarProject.getHeadLines());
		  
        for (int j = 0;j<6;j++)//nested loop to add boxes, loop to go through weeks in a month
        {
        	for (int i = 0;i<7;i++)//loop to go through days in a week
        	{
        		int boxNumber = (j*7)+(i+1);//square number is the index number in the arraylist plus 1
        		boxes.add(new Box(boxNumber));//add square to list of squares  (square number, topLeftX, topLeftY)
        	}
        }
        X_DIM = X;
        Y_DIM = Y;
       
        setPreferredSize (new Dimension (X_DIM, Y_DIM)); // size
		addMouseListener(this);//add key and mouse listeners
		setFocusable(true);//have both listeners at the same time
		addKeyListener(this);
		requestFocusInWindow();

		
	}