| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 
 | // Premier Panneau
   Graphics g = getGraphics();
   g.setColor(255,255,255);
   g.fillRect( 0, 0, getWidth(), getHeight() );
   g.setColor(255,0,0);
   g.drawString("Test",Width,Height,Graphics.SOLID);
 
 
   /* Dans la méthode où tu changes de niveau */
   /* Efface l'écran: il se peut qu'il existe un meilleur moyen */
   Graphics g = getGraphics();
   g.setColor(255,255,255);
   g.fillRect( 0, 0, getWidth(), getHeight() );
   g.setColor(0,0,0);
   for (int x = 0; x < _width; x+=_space) {
                // Dessin des colonnes
                g.drawLine(x,0,x,_height);
            }
            for (int y = 0; y < _height; y+=_space){
                // Dessin des lignes
               g.drawLine(0,y,_width,y);
            }
    }
    flushGraphics(); | 
Partager