private void displayMonth() {

		if(currentMonth< 1){
			currentMonth++;
		}
		if(currentMonth > 3){
			currentMonth--;
		}
		Month tempMonth = months[currentMonth];
		displayMonth.setText(tempMonth.getName());
		for (int i = 0; i < tempMonth.getStartDay(); i++) {
			dayPanel[i].deactivate(months[currentMonth-1].getTotalNumDays());
		}
		Day[][] days = tempMonth.getDays();
		int j = 7 * 5;
		for (int i = tempMonth.getStartDay(); i < tempMonth.getStartDay()
				+ tempMonth.getTotalNumDays(); i++) {
			dayPanel[i].setDate(days[i % 7][i / 7].getDate());
			j = i;
		}
		for (int i = j + 1; i < 7 * 6; i++) {
			dayPanel[i].deactivate(i-j);
		}

	}