init: update creation table

This commit is contained in:
llample3
2026-03-27 13:22:42 +01:00
parent fc92f720c3
commit 00b84dd3ac
19 changed files with 5 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -10,7 +10,7 @@ public class CadreDeConnexion extends JFrame {
setDefaultCloseOperation(EXIT_ON_CLOSE); setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocationRelativeTo(null); // Centre la fenêtre setLocationRelativeTo(null); // Centre la fenêtre
// 2. Style du panneau principal (Gris foncé) // 2. Style du panneau principal (noir )
JPanel panel = new JPanel(new GridBagLayout()); JPanel panel = new JPanel(new GridBagLayout());
panel.setBackground(new Color(30, 30, 30)); panel.setBackground(new Color(30, 30, 30));
add(panel); add(panel);

View File

@@ -62,6 +62,10 @@ public class Jeu implements KeyListener, ActionListener{
// Constructeur de la classe // Constructeur de la classe
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
public Jeu(int utilisateurId){ public Jeu(int utilisateurId){
// Créer les tables de la base de données si elles n'existent pas
GestionBDD.creerTableUtilisateurSiAbsente();
GestionBDD.creerTableScoreSiAbsente();
JFrame fenetre = new JFrame(); JFrame fenetre = new JFrame();
this.utilisateurId = utilisateurId; this.utilisateurId = utilisateurId;