init: update creation table
This commit is contained in:
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user