public static void setMap(){        
        jPanel1 = new JPanel(new GridLayout(19,48,0,0));
        JLabel labels[] = new JLabel[(19*48)];
        
        String bufferMap = carte.lire("./ressources/map.txt"); 
        for (int i =  0,j = 0; i < bufferMap.length(); i++)
        {
            if(bufferMap.charAt(i) == '*' )
            {
                ImageIcon grassIcon = new ImageIcon("./images/mur.png"); 
                labels[j] = new JLabel(grassIcon );
                jPanel1.add(labels[j]);
                j++;
            }
            if(bufferMap.charAt(i) == ' ' || bufferMap.charAt(i) == 'P' )
            {
                ImageIcon grassIcon = new ImageIcon("./images/sol.png"); 
                labels[j] = new JLabel(grassIcon );
                jPanel1.add(labels[j]);
                j++;
            }
            if(bufferMap.charAt(i) == 'A' )
            {
                ImageIcon grassIcon = new ImageIcon("./images/arrive.png"); 
                labels[j] = new JLabel(grassIcon );
                jPanel1.add(labels[j]);
                j++;
            }
            if(bufferMap.charAt(i) == 'G' )
            {
                ImageIcon grassIcon = new ImageIcon("./images/herbe.png"); 
                labels[j] = new JLabel(grassIcon );
                jPanel1.add(labels[j]);
                j++;
            }
            if(bufferMap.charAt(i) == 'D' )
            {
                ImageIcon grassIcon = new ImageIcon("./images/porte.png"); 
                labels[j] = new JLabel(grassIcon );
                jPanel1.add(labels[j]);
                j++;
            }            
        }
    }