couleur grille, attaque => attaques

This commit is contained in:
diane 2023-05-01 14:40:48 +02:00
parent f115252ce1
commit 77fdc733ae
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ public class JPanelDessin extends JPanel {
y= y + height/ Plateau.TAILLE_Y;
}
while (x<=width) {
g.setColor(new Color(235, 235, 235));
g.setColor(new Color(1, 255, 0));
g.drawLine(x, 0, x, height);
x= x + width/Plateau.TAILLE_X;
}

View File

@ -133,7 +133,7 @@ public class MaJFrame extends JFrame {
gbl_panelInfo.columnWidths = new int[]{45};
gbl_panelInfo.rowHeights = new int[]{20, 35, 35, 35, 35, 35, 35, 35, 35, 35};
gbl_panelInfo.columnWeights = new double[]{1.0};
gbl_panelInfo.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
gbl_panelInfo.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
panelInfo.setLayout(gbl_panelInfo);
// Affichage du score
@ -157,7 +157,7 @@ public class MaJFrame extends JFrame {
panelInfo.add(lblScoreVie, gbc_lblScoreVie);
// Affichage des points d'attaque du joueur
lblAttaque = new JLabel("Attaque");
lblAttaque = new JLabel("Attaques");
lblAttaque.setForeground(new Color(240, 240, 240));
lblAttaque.setVerticalAlignment(SwingConstants.BOTTOM);
GridBagConstraints gbc_lblAttaque = new GridBagConstraints();