Bonjour !

Je dois réaliser un jeu de labyrinthe en interface graphique et j'ai un problème : je n'arrive pas importer des images. Comment faire ?
aidez-moi, s'il-vous-plaît.

Quand je l'exécute, le programme m'affiche ceci et le suis perdu.
Merci à vous.

/************************************************************/
Exception in thread "main" java.lang.NullPointerException
Erreur de Chargement de la Carte
	at Carte.readFile(Carte.java:67)
	at Carte.<init>(Carte.java:18)
	at Planche.<init>(Planche.java:15)
	at Pulzze.<init>(Pulzze.java:10)
	at MaMain.main(MaMain.java:6)
/************************************************************/
Code Java : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import java.util.*;
import java.awt.*;
import java.io.*;
 
import javax.swing.ImageIcon;
 
public class Carte {
 
	private Scanner m ;
 
	private String Carte[] = new String [14];
 
	private Image herbe, mur ;
 
public Carte(){
 
	ImageIcon img = new ImageIcon("/home/diallo/Documents/perso/herbe.png");
 
	herbe = img.getImage();
 
	img = new ImageIcon("/home/diallo/perso/Documents/mur.png");
 
	mur = img.getImage();
 
	openFile();
 
	readFile();
 
	closeFile();
 
   }
 
public Image getHerbe(){
 
	return herbe;
}
 
public Image getMur(){
 
	return mur;
}
 
public String getCarte(int x, int y){
 
	String index = Carte[y].substring(x, x + 1);
 
	return index;
 
}
 
public void openFile(){
 
	try {
 
		m = new Scanner(new File("/home/diallo/Documents/perso/Carte.txt"));
 
	}catch(Exception e){
 
		System.out.println("Erreur de Chargement de la Carte");
	}
 
   }
 
public void readFile(){
 
	while(m.hasNext()){
 
		for(int i = 0 ; i < 14 ; i++ ){
 
			Carte[i] = m.next();
		}
	}
 
   }
 
public void closeFile(){
 
  }
}