From f5bda2f1142668e227a67afd663dfbb2e7a5ee55 Mon Sep 17 00:00:00 2001
From: CHEVALIER Noemy <noemy.chevalier7@etu.univ-lorraine.fr>
Date: Tue, 30 May 2023 20:33:47 +0000
Subject: [PATCH] Suppression boutons couleurs et touches

---
 shukan/ShukanParameters.java | 25 +------------------------
 1 file changed, 1 insertion(+), 24 deletions(-)

diff --git a/shukan/ShukanParameters.java b/shukan/ShukanParameters.java
index 8ae0c07..7c4899a 100644
--- a/shukan/ShukanParameters.java
+++ b/shukan/ShukanParameters.java
@@ -10,7 +10,7 @@ class ShukanParameters extends JFrame {
     /** panels of the graphic interface */
     private JPanel pPrincipal,p, p1;
     /** buttons of the graphic interface */
-    private JButton changerdetheme, theme1, theme2, theme3, retour, changertouches, changercouleurs;
+    private JButton changerdetheme, theme1, theme2, theme3, retour;
     /** view of the app */
     private ShukanView canvas;
     /** Color background, text, hollydays*/
@@ -33,12 +33,6 @@ class ShukanParameters extends JFrame {
 
         changerdetheme = new JButton("Changer de thème");
         changerdetheme.setPreferredSize(new Dimension(190, 25));
-
-        changertouches = new JButton("Changer les touches");
-        changertouches.setPreferredSize(new Dimension(190, 25));
-
-        changercouleurs = new JButton("Changer les couleurs");
-        changercouleurs.setPreferredSize(new Dimension(190, 25));
         
         changerdetheme.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
@@ -115,15 +109,6 @@ class ShukanParameters extends JFrame {
                         gbcprinc.gridy = 0;
                         gbc.fill = GridBagConstraints.HORIZONTAL;
                         p.add(changerdetheme, gbcprinc);
-                
-                        gbcprinc.gridx = 0;
-                        gbcprinc.gridy = 1;
-                        p.add(changertouches, gbcprinc);
-                        
-                        gbcprinc.gridx = 0;
-                        gbcprinc.gridy = 2;
-                        p.add(changercouleurs, gbcprinc);
-
                         pPrincipal = p;
 
                         add(pPrincipal);
@@ -163,14 +148,6 @@ class ShukanParameters extends JFrame {
         gbc.fill = GridBagConstraints.HORIZONTAL;
         p.add(changerdetheme, gbcprinc);
 
-        gbcprinc.gridx = 0;
-        gbcprinc.gridy = 1;
-        p.add(changertouches, gbcprinc);
-        
-        gbcprinc.gridx = 0;
-        gbcprinc.gridy = 2;
-        p.add(changercouleurs, gbcprinc);
-
         pPrincipal = p;
         add(pPrincipal);
     }
-- 
GitLab