From a76e8b8bec48f400aa5882cc17965b8cc7a53326 Mon Sep 17 00:00:00 2001 From: CHEVALIER Noemy <noemy.chevalier7@etu.univ-lorraine.fr> Date: Tue, 30 May 2023 19:51:08 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shukan/ShukanParameters.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/shukan/ShukanParameters.java b/shukan/ShukanParameters.java index ab0217f..8ae0c07 100644 --- a/shukan/ShukanParameters.java +++ b/shukan/ShukanParameters.java @@ -19,14 +19,11 @@ class ShukanParameters extends JFrame { private int nbModules = STD_MODULES_NUMBER; /** Standard number of modules */ private final static int STD_MODULES_NUMBER = 14; - /**view of the app */ - private ShukanStudent student; /** built a parameter window */ - public ShukanParameters(String titre, ShukanView canvas, ShukanStudent student) { + public ShukanParameters(String titre, ShukanView canvas) { super(titre); this.canvas = canvas; - this.student = student; p = new JPanel(new GridBagLayout()); GridBagConstraints gbcprinc = new GridBagConstraints(); @@ -64,8 +61,6 @@ class ShukanParameters extends JFrame { INACTIVE_COLOR = new Color (204,204,204); canvas.setBackgroundColor(BACK_COLOR, BACK_COLOR2); canvas.setForeground(TEXT_COLOR, HOLLY_COLOR, INACTIVE_COLOR); - student.setBackgroundColor(BACK_COLOR2); - student.setForeground(TEXT_COLOR); } canvas.repaint(); } @@ -83,8 +78,6 @@ class ShukanParameters extends JFrame { INACTIVE_COLOR = new Color(51,51,51); canvas.setBackgroundColor(BACK_COLOR, BACK_COLOR2); canvas.setForeground(TEXT_COLOR, HOLLY_COLOR, INACTIVE_COLOR); - student.setBackgroundColor(BACK_COLOR2); - student.setForeground(TEXT_COLOR); } canvas.repaint(); } @@ -102,8 +95,6 @@ class ShukanParameters extends JFrame { INACTIVE_COLOR = new Color (0.5f, 0.5f, 0.5f); canvas.setBackgroundColor(BACK_COLOR, BACK_COLOR2); canvas.setForeground(TEXT_COLOR, HOLLY_COLOR, INACTIVE_COLOR); - student.setBackgroundColor(BACK_COLOR2); - student.setForeground(TEXT_COLOR); } canvas.repaint(); } -- GitLab