@Override
	    public void paint(Graphics g, JComponent c) {//g cr par l'appel  l'UI et c est le composant
	      Graphics2D gg = (Graphics2D) g.create();
	      gg.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
	      gg.setStroke(new BasicStroke(1, BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND));
	      try {
	    	  Life.checkDrawingSize();
	    	  float l = Life.cellSize;
	    	  gg.setColor(Life.foreground);
	    	  boolean[][] draw = Life.currentState;
	    		  for(int i=0;i<draw.length;i++){
	    			  for(int j=0;j<draw[0].length;j++){
	    				  if(draw[i][j]) gg.fillRect((int)(l*j),(int)(l*i), ((int)l)+1, ((int)l)+1);
	    			  }
	    		  }  
	    		  /*
	    	  int n = (int) (l*Math.pow(2, Life.currentCell.n));
	    	  gg.drawLine(0,0, 0,n);
	    	  gg.drawLine(0,n, n, n);
	    	  gg.drawLine(n,0, n, n);
	    	  gg.drawLine(0,0, n, 0);
	    	  gg.drawLine(0,n/2, n,n/2);
	    	  gg.drawLine(n/2,0, n/2,n);
	    	  gg.drawLine(0,n/4, n,n/4);
	    	  gg.drawLine(n/4,0, n/4,n);
	    	  gg.drawLine(0,3*n/4, n,3*n/4);
	    	  gg.drawLine(3*n/4,0, 3*n/4,n);*/
	    	  
	      } catch(Exception e){
	    	  gg.drawChars("Explorez le Jeu de la Vie...".toCharArray(), 0, 28, 200, 200);
	      } finally {      
	        gg.dispose();
	      }
	    }