public Fenetre (){
		super();
		
		
		this.setTitle("LO43 Vivarium");
		this.setSize(800,600);
		this.setLocationRelativeTo(null);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		m = new Map(20,20);
		
		this.gMap = new GraphicMap(m);
		gMap.addMouseListener(this);
		gMap.setPreferredSize(new Dimension(this.getWidth(), 1000));
		
		/* option de lecture (zoom deplacement carte play pause etc...)*/
		
		zoom = new JPanel();
		zoomLabel = new JLabel("zoom : ");
		zoomPlus = new JButton("+");
		zoomMoins = new JButton("-");
		zoomPlus.addActionListener(this);
		zoomMoins.addActionListener(this);
		zoom.add(zoomLabel);
		zoom.add(zoomPlus);
		zoom.add(zoomMoins);
		
		
		try {
			BufferedImage playImg = (ImageIO.read(new File("Image/BouttonIcon/Play.png")));
			play = new JButton(new ImageIcon(playImg));
			play.setBorder(BorderFactory.createEmptyBorder());
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			play = new JButton();
		}
		play.addActionListener(this);
		dp = new DeplacementPanel(this.gMap);
		dp.setBackground(new Color(101,77,48));
		dp.setPreferredSize(new Dimension(150,150));
			/* panel des options de lecture */
		
		lectureOption = new JPanel();
		lectureOption.setBackground(new Color(101,77,48));
		lectureOption.add(zoom);
		lectureOption.add(play);
		lectureOption.add(dp);
		
		/*--------------------------------------------------------------*/
		
		/* option d'ajout (ajout d'animaux et d'objet) */
		
		meute = new JPanel();
		meuteLabel = new JLabel("Meute : ");
		meuteSpinner = new JSpinner();
		meute.add(meuteLabel);
		meute.add(meuteSpinner);	
		
			/* panel des option d'ajout */
		
		ajoutOption = new AjoutPanel();
		ajoutOption.setBackground(new Color(101,77,48));
		//ajoutOption.add(meute);
		
		/* --------------------------------------------------------------*/
		miniMap = new MiniMap(this.gMap);
		miniMap.setPreferredSize(new Dimension(500,500));
		
		buttonPanel= new JPanel();
		buttonPanel.setBackground(new Color(101,77,48));
		buttonPanel.setLayout(new GridLayout(1, 3));
		buttonPanel.setPreferredSize(new Dimension(this.getWidth(),500));
		buttonPanel.add(miniMap);
		buttonPanel.add(lectureOption);
		buttonPanel.add(ajoutOption);
		
		
		contentPanel = new JPanel();
		contentPanel.setLayout(new BoxLayout(contentPanel, BoxLayout.PAGE_AXIS));
		
		
		contentPanel.add(gMap);
		contentPanel.add(buttonPanel);
		this.setContentPane(contentPanel);
		
		/* ------ Menu ------ */
			
		this.nouveau = new JMenuItem("nouvelle partie");
		this.charger = new JMenuItem("charger");
		this.sauvegarder = new JMenuItem("sauvegarder");
		
		this.nouveau.addActionListener(this);
		this.charger.addActionListener(this);
		this.sauvegarder.addActionListener(this);
		
		this.fichier = new JMenu("Fichier");
		
		this.fichier.add(this.nouveau);
		this.fichier.add(this.charger);
		this.fichier.add(this.sauvegarder);
		
		this.menu= new JMenuBar();
		this.menu.add(this.fichier);
		this.setJMenuBar(this.menu);
		/* -------------------*/
		
		t = new Thread(new Animation());
		s = new Scheduler(m);
		t.start();
		s.start();
	}