forked from menault/TD3_DEV51_Qualite_Algo
Exo 3 appliqué
This commit is contained in:
@@ -14,6 +14,11 @@ public class HangmanPanel extends JPanel {
|
||||
/*Dessiner le pendu*/
|
||||
protected void paintComponent(Graphics g) {
|
||||
super.paintComponent(g);
|
||||
|
||||
// Amélioration visuelle
|
||||
g.setColor(Color.BLACK);
|
||||
g.setFont(new Font("Arial", Font.BOLD, 12));
|
||||
g.drawString("Erreurs: " + errors + "/9", 10, 20);
|
||||
|
||||
g.drawLine(50, 300, 200, 300);
|
||||
g.drawLine(125, 300, 125, 50);
|
||||
@@ -30,4 +35,4 @@ public class HangmanPanel extends JPanel {
|
||||
if (errors > 7) g.drawString("X", 240, 100);
|
||||
if (errors > 8) g.drawString("X", 255, 100);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user