Affichage du jeu du pendu

This commit is contained in:
2025-10-08 11:15:14 +02:00
parent d074170b0f
commit 3bc6530305
6 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package fr.iut.Projet;
import javax.swing.*;
import java.awt.*;
public class Action {
public Action() {
JFrame gameFrame = new JFrame("Jeu du pendu");
gameFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
gameFrame.setSize(1040, 1000);
gameFrame.setLayout(new BorderLayout());
JLabel label = new JLabel("Bienvenue dans le jeu !");
label.setFont(new Font("Arial", Font.BOLD, 28));
label.setHorizontalAlignment(SwingConstants.CENTER);
gameFrame.add(label, BorderLayout.CENTER);
gameFrame.setVisible(true);
}
}