private CalendarView(DatabaseAccess db, Files files){
		setLayout(new BorderLayout());
		setSize(new Dimension(200,200));
		this.calendarModel = CalendarModel.getInstance(db);
		files.addObserver(this.calendarModel);
		ButtonController bc = new ButtonController(db);
		JPanel jp = new JPanel();
		this.calendarModel.addObserver(this);
		jp.setLayout(new GridLayout(1,3));
		jp.setSize(30, 30);
		JButton back = new JButton("Back");
		back.setMaximumSize(new Dimension(5,5));
		JButton forward = new JButton("Forward");
		forward.setSize(10,10);
		jp.add(back);
		JPanel month = new JPanel();
		month.setLayout(new BorderLayout());
		this.monthText = new JLabel(); 
		this.changeMonthText();
		month.add(this.monthText,BorderLayout.SOUTH);
		jp.add(month, BorderLayout.SOUTH);
		jp.add(forward);
		back.addActionListener(bc);
		back.setActionCommand("Back");
		forward.addActionListener(bc);
		forward.setActionCommand("Forward");
		GregorianCalendar g = calendarModel.getCalendar();
		add(jp,BorderLayout.NORTH);
		add(DatesView.getInstance(db,files),BorderLayout.CENTER);
		setVisible(true);
		addObserverto(this.calendarModel);
	}