forked from menault/TD3_DEV51_Qualite_Algo
Affichage du jeu du pendu
This commit is contained in:
20
src/fr/iut/Projet/Action.java
Normal file
20
src/fr/iut/Projet/Action.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user