@Override
	public void paintComponent(Graphics g) {
		try {
			if (cases != null) {
				for (int i = 0; i < controler.getLargeurTableau(); i++) {
					for (int j = 0; j < controler.getHauteurTableau(); j++) {
						final String elt = cases[i][j];
						if (elt != null && !elt.isEmpty()) {
							final File file = new File("images/" + elt);
							if (file.exists()) {
								final Image img = ImageIO.read(file);
								g.drawImage(img, 34 * j, 34 * i + 20, this);
							}
						}
					}
				}
			}
		} catch (final IOException e) {
			e.printStackTrace();
		}
	}