diff --git a/shukan/ShukanParameters.java b/shukan/ShukanParameters.java index 603c59480be32996098ea653460e28646946eb65..148df38e1a3a08c105c80e59dcf0bfcbacc902ea 100644 --- a/shukan/ShukanParameters.java +++ b/shukan/ShukanParameters.java @@ -18,12 +18,15 @@ class ShukanParameters extends JFrame { /** Number of modules to display */ private int nbModules = STD_MODULES_NUMBER; /** Standard number of modules */ - private final static int STD_MODULES_NUMBER = 14; + 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) { + public ShukanParameters(String titre, ShukanView canvas, ShukanStudent student) { super(titre); this.canvas = canvas; + this.student = student; p = new JPanel(new GridBagLayout()); GridBagConstraints gbcprinc = new GridBagConstraints(); @@ -61,7 +64,8 @@ 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(); } @@ -79,6 +83,8 @@ 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(); } @@ -96,6 +102,8 @@ 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();