Modification esthétique

This commit is contained in:
Daouadi Amir 2023-04-18 15:57:46 +02:00
parent 2851c4497f
commit 31ceafcacc
10 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@ -17,10 +17,10 @@ public class Accueil extends JPanel {
fenetre.setContentPane(accueil);
// Création du texte
JLabel texte = new JLabel("Choisissez votre type de grille", SwingConstants.CENTER);
texte.setPreferredSize(new Dimension(800, 50));
JLabel texte = new JLabel("Bon jeu !", SwingConstants.CENTER);
texte.setPreferredSize(new Dimension(500, 50));
texte.setFont(new Font("Arial", Font.BOLD, 30));
texte.setForeground(new Color(0, 200, 10));
texte.setForeground(new Color(0, 0, 0));
// Création des boutons
Boutons boutons = new Boutons(fenetre);

Binary file not shown.

View File

@ -13,12 +13,12 @@ public class Boutons extends JPanel {
choisirGrille = new JButton("Générer une grille");
choisirGrille.setPreferredSize(new Dimension(250, 50));
choisirGrille.setFont(new Font("Arial", Font.BOLD, 20));
choisirGrille.setBackground(Color.CYAN);
choisirGrille.setBackground(Color.GRAY);
importerGrille = new JButton("Importer une grille");
importerGrille.setPreferredSize(new Dimension(250, 50));
importerGrille.setFont(new Font("Arial", Font.BOLD, 20));
importerGrille.setBackground(Color.GREEN);
importerGrille.setBackground(Color.GRAY);
this.fenetrePrincipale = fenetrePrincipale;
@ -71,7 +71,7 @@ public class Boutons extends JPanel {
importerGrille.addActionListener(e -> {
JFileChooser fileChooser = new JFileChooser();
fileChooser.setDialogTitle("Choisissez un fichier de grille");
fileChooser.setDialogTitle("Selectionnez le fichier ou se trouve votre grille");
int choix = fileChooser.showOpenDialog(this);
if (choix == JFileChooser.APPROVE_OPTION) {
File fichier = fileChooser.getSelectedFile();

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 2.6 MiB