public static void updateCalendar(int aMonth, int aYear){
		String[] months = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
		int days;
		int startOfMonth; 
		prev.setEnabled(true); 
		next.setEnabled(true);
		// Prevents going backward or forward too far
		if (aMonth == 0 && aYear <= theYear-10){
			prev.setEnabled(false);
		} 
		if (aMonth == 11 && aYear >= theYear+50){
			next.setEnabled(false);
		} 
		month.setText(months[aMonth]); 
		month.setBounds(418-month.getPreferredSize().width/2, 50, 360, 50); 
		yearBox.setSelectedItem(String.valueOf(aYear)); 
		// Creates calendar for correctly adding days for a specific month
		GregorianCalendar gregCal = new GregorianCalendar(aYear, aMonth, 1);
		days = gregCal.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
		startOfMonth = gregCal.get(GregorianCalendar.DAY_OF_WEEK);
		// Adds all days to a specific month
		for (int i = 0; i < 6; i++){
			for (int j = 0; j < 7; j++){
				calendarTable.setValueAt(null, i, j);
			}
		}
		generateDays(days, startOfMonth);
		// Sets days of the month to the top of each cell
		DefaultTableCellRenderer render = new DefaultTableCellRenderer();
		render.setVerticalAlignment(JLabel.TOP);
		for (int i = 0; i < 7; i++){
			Calendar.getColumnModel().getColumn(i).setCellRenderer(render);
		}
	}