else if (MainFrame.getInstance().getViewType()==MainFrame.VIEW_WEEK)
else if (MainFrame.getInstance().getViewType()==MainFrame.VIEW_HALF_YEAR)
	private void initPeriodPanel() {				periodPanel.setLayout(new BorderLayout());				periodChooser = new JDateChooser();		//TODO fire ?		periodPanel.add(periodChooser, BorderLayout.CENTER);		previousButton = new JButton(Action.getImage("gauche.png"));		periodPanel.add(previousButton, BorderLayout.WEST);				nextButton = new JButton(Action.getImage("droite.png"));		periodPanel.add(nextButton, BorderLayout.EAST);				previousButton.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent ae) {				if (MainFrame.getInstance().getViewType()==MainFrame.VIEW_WEEK)					periodChooser.setDate(new Date(periodChooser.getDate().getTime()-aWeek));				else if (MainFrame.getInstance().getViewType()==MainFrame.VIEW_WEEK)					periodChooser.setDate(new Date(periodChooser.getDate().getTime()-anHalfYear));					try {								model.fireShowTimetable(model.getTimetable()); //TODO modifier				} catch (InterruptedException e) {					System.err.println("calendar -- fire exception : "+e.getMessage());					e.printStackTrace();				}						}		});		nextButton.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent ae) {				if (MainFrame.getInstance().getViewType()==MainFrame.VIEW_WEEK)					periodChooser.setDate(new Date(periodChooser.getDate().getTime()+aWeek));				else if (MainFrame.getInstance().getViewType()==MainFrame.VIEW_WEEK)					periodChooser.setDate(new Date(periodChooser.getDate().getTime()+anHalfYear));					try {								model.fireShowTimetable(model.getTimetable()); //TODO modifier				} catch (InterruptedException e) {					System.err.println("calendar ++ fire exception : "+e.getMessage());					e.printStackTrace();				}			}		});			}