wow le tp là

This commit is contained in:
Simoes Lukas
2025-09-04 15:36:55 +02:00
parent c16ef0985f
commit 2c3e150ec5
87 changed files with 1059 additions and 28 deletions

View File

@@ -0,0 +1,25 @@
import java.awt.*;
import javax.swing.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class Rafraichir implements ActionListener {
private JLabel texteScore;
private JLabel textePays;
private Fenetre fenetre;
public Rafraichir(JLabel texteScore, JLabel textePays, Fenetre fenetre) {
this.texteScore = texteScore;
this.textePays = textePays;
this.fenetre = fenetre;
}
public void actionPerformed(ActionEvent evenement) {
Connexion cnx2 = new Connexion();
this.texteScore.setText(cnx2.getScorePays() + "");
this.textePays.setText(cnx2.getNomPays());
this.fenetre.repaint();
}
}