From 305927ef1c1d8df88e1765ac0497dd9067a42836 Mon Sep 17 00:00:00 2001 From: besson Date: Fri, 2 Dec 2022 12:08:10 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'src/Test/MainMenu.?= =?UTF-8?q?java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Test/MainMenu.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Test/MainMenu.java b/src/Test/MainMenu.java index f2e6490..723a065 100644 --- a/src/Test/MainMenu.java +++ b/src/Test/MainMenu.java @@ -8,6 +8,7 @@ public class MainMenu extends JFrame { private final static Dimension MINIMUM_SIZE = new Dimension(960, 600); private final CardLayout cards = new CardLayout(), adminCards = new CardLayout(), profCards = new CardLayout(), studentCards = new CardLayout(); private final JPanel adminPanel = new JPanel(), profPanel = new JPanel(), studentPanel = new JPanel(); + private final Color blue = new Color(53, 242, 242); private JMenuBar menuBar; private Controller listener; private AdminView av; @@ -136,7 +137,7 @@ public class MainMenu extends JFrame { studentPanel.setLayout(studentCards); studentPanel.add(cardWithTable(studentView())); studentCards.next(studentPanel); - menuBar.setBackground(Color.BLUE); + menuBar.setBackground(this.blue); } travelThroughCards(index); } @@ -237,7 +238,7 @@ public class MainMenu extends JFrame { } else { this.setTitle(viewName[2]); - menuBar.setBackground(Color.BLUE); + menuBar.setBackground(this.blue); studentPanel.setLayout(studentCards); studentPanel.add(cardWithTable(studentView())); studentCards.next(studentPanel);