public MapPanel(ArrayList<Classroom> places) {
		
		this.places = places;
		this.hoveredClassroom = null;
		
		
		BufferedImage img = null;
		try	{
			img = ImageIO.read(new File("img/Plan Campus.jpg"));
		} catch (Exception e)	{e.printStackTrace();}
		

		setLayout(new GridLayout(0, 1, 0, 0));
		
		this.splitPane = new JSplitPane();
		this.add(splitPane);
		
		this.panel = new JPanel();
		panel.setLayout(null);
		JLabel label = new JLabel(new ImageIcon(img));
		label.setBounds(0, 0, img.getWidth(), img.getHeight());
		this.panel.add(label);
		splitPane.setLeftComponent(panel);
		this.setPreferredSize(new Dimension(1050, 550));
		this.setMinimumSize(new Dimension(1050, 550));
		JPanel panel = new JPanel();
		splitPane.setRightComponent(panel);
		panel.setLayout(new GridLayout(0, 2, 0, 0));
		
		JLabel lblNom = new JLabel("Nom : ");
		lblNom.setHorizontalAlignment(SwingConstants.RIGHT);
		panel.add(lblNom);
		
		name = new JLabel(" ");
		name.setHorizontalAlignment(SwingConstants.LEFT);
		panel.add(name);
		
		JLabel lblType = new JLabel("Type : ");
		lblType.setHorizontalAlignment(SwingConstants.RIGHT);
		panel.add(lblType);
		
		type = new JLabel(" ");
		type.setHorizontalAlignment(SwingConstants.LEFT);
		panel.add(type);
		
		JLabel lblPlaces = new JLabel("Places : ");
		lblPlaces.setHorizontalAlignment(SwingConstants.RIGHT);
		panel.add(lblPlaces);
		
		eff = new JLabel(" ");
		eff.setHorizontalAlignment(SwingConstants.LEFT);
		panel.add(eff);

		Graphics g = img.getGraphics();
		g.setColor(Color.RED);
		 
		for (final Classroom c : this.places)	{
			if (c.getCoords() != null)	{
				g.fillOval(c.getCoords().x - 34, c.getCoords().y - 34, 9, 9);
				JLabel lbl = new JLabel("");
				lbl.setBounds(c.getCoords().x - 34, c.getCoords().y - 34, 9, 9);
				lbl.addMouseListener(new MouseListener() {
					
					public void mouseReleased(MouseEvent e) {}
					
					public void mousePressed(MouseEvent e) {}
					
					public void mouseExited(MouseEvent e) {
						hoveredClassroom = null;
						updateHC();				
					}
					
					public void mouseEntered(MouseEvent e) {
						hoveredClassroom = c;
						updateHC();
					}
					
					public void mouseClicked(MouseEvent e) {}
				});
				
				//System.out.println(lbl + "\n" + lbl.getBounds());
				this.panel.add(lbl);
			}
		}
		
		this.splitPane.setDividerLocation(img.getWidth());
	}