From 9d2988322786e9c78e3ea21bfb92c0132375111a Mon Sep 17 00:00:00 2001 From: stiti Date: Thu, 4 Apr 2024 19:25:05 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20Menu.java=20|=20Permet=20de=20cr?= =?UTF-8?q?=C3=A9e=20le=20menu=20principal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- img/.DS_Store | Bin 0 -> 6148 bytes img/sudoku.png | Bin 0 -> 17715 bytes src/Menu.java | 71 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 img/.DS_Store create mode 100644 img/sudoku.png create mode 100644 src/Menu.java diff --git a/img/.DS_Store b/img/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..e7ea55c383550dc72ff720703490af6e21422fea GIT binary patch literal 6148 zcmeHKyG{c^3>-s>2%40X`vpkUG^;2nQu6~SM4}+#kWl)o@?HEHj2}Wo2MrPp8cX)< zdOf$fDb6tfTOM{dzyiRW?ues@srkA4#Lg;XL^_}GgafYef@eHVs=rS-_X4lv?J#`h zZ}!8(c0X)+?muo#zkLtmN+t!QfE17dQa}p)Rsrw5wE1PCq7;wR+`j)_T!#m#(9-E1|XSlrHh zi*i^`RFncz;8cP0+%CNT`+WVw{C`T)P6|kYf2DxUR(Go5Jhv31rad(FVf;ZB*yEg95HZ%9m zb7!9W-xs_4a)JJIbEM9xs&C2pb)67J`Hz@rglGT&08>g*Oc?-xn|^wsBEwn^X0DT9 zZ_gYhwOjxI<~L6-I1iAp8?2EZD6R<$2-_BD_4_G>~jDBannjw6R0UC%V*+X$82Qk zU~Iw@WDRXnE{Q+J?w1lUHCi%Y5y3(2mAcg%t9-KM*goK0cTTlK4me9 ze+`BGCrE1v1UmAuu(-RsGrO}hJ2+dgu=4WqvbN9 zDKRq_6K5+&pp}C?`4ed)V+U8DAT8}*qyF5IsmWiWLFRTO)f5L0S(cQ!{fTS6d*h5Nuyo7WU*WM)oe` zF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0 +1,71 @@ +import javax.swing.*; +import java.awt.*; + +public class Menu extends JFrame { + // Attributs + private Dimension tailleBouton = new Dimension(300, 60); // Taille des boutons + private Color couleurFond = new Color(54, 91, 109); // Couleur du fond de la fenêtre + private Color couleurTexteTitre = Color.WHITE; // Couleur du texte du titre et sous-titre + private int tailleTitre = 75; // Taille du texte du titre + private int tailleSousTitre = 24; // Taille du texte du sous-titre + private int tailleTexteBouton = 24; // Taille du texte des boutons + private Dimension tailleFenetre = new Dimension(1000,700); // Taille de la fenêtre + private Font policeTitre = new Font("Copperplate", Font.BOLD, tailleTitre); // Police du titre + private Font policeSousTitre = new Font("Copperplate", Font.PLAIN, tailleSousTitre); // Police du sous-titre + private Font policeBouton = new Font("Copperplate", Font.BOLD, tailleTexteBouton); // Police des boutons + private String[] boutonTextes = {"Jouer", "Générer une grille", "Résoudre une grille", "Quitter"}; // Textes des boutons + private JLabel[] labels = {new JLabel("Sudoku Solver", SwingConstants.CENTER), // Texte du titre et sous-titre + new JLabel("Par Moncef & Marco", SwingConstants.CENTER)}; + + // Constructeurs + public Menu() { + // Création et configuration de la fenêtre (taille, fermeture) + JFrame fenetre = new JFrame("Sudoku - Menu principal"); + fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + fenetre.setMinimumSize(tailleFenetre); + fenetre.getContentPane().setBackground(couleurFond); + fenetre.setLayout(new BorderLayout()); + + // Création et ajout du panneau de titre + JPanel panneauTitre = new JPanel(new GridLayout(2, 1)); + panneauTitre.setBackground(couleurFond); + + Font[] fonts = {policeTitre, policeSousTitre}; + for (int i = 0; i < labels.length; i++) { + labels[i].setFont(fonts[i]); + labels[i].setForeground(couleurTexteTitre); + panneauTitre.add(labels[i]); + } + fenetre.add(panneauTitre, BorderLayout.NORTH); + + // Création et ajout du panneau de boutons + JPanel panneauBouton = new JPanel(); + panneauBouton.setLayout(new GridLayout(boutonTextes.length, 1, 0, 10)); + panneauBouton.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20)); // Permet de ne pas coller les boutons aux bords de la fenêtre + panneauBouton.setBackground(couleurFond); + JButton[] boutons = new JButton[boutonTextes.length]; + for (int i = 0; i < boutons.length; i++) { + boutons[i] = new JButton(boutonTextes[i]); + boutons[i].setFont(policeBouton); + boutons[i].setPreferredSize(tailleBouton); + panneauBouton.add(boutons[i]); + } + fenetre.add(panneauBouton, BorderLayout.WEST); + + // Ajout de l'image "sudoku.png" + ImageIcon imageSudoku = new ImageIcon("../img/sudoku.png"); + JLabel imageLabel = new JLabel(imageSudoku); + fenetre.add(imageLabel, BorderLayout.EAST); + + fenetre.pack(); + fenetre.setLocationRelativeTo(null); + fenetre.setVisible(true); + } + + /* À SUPPRIMER APRÈS LA PHASE DE DEBUG + public static void main(String[] args) { + Menu menu = new Menu(); + } + */ + +}