Mise à jour de 'src/Test/MainMenu.java'

This commit is contained in:
Romain BESSON 2022-12-02 12:08:10 +01:00
parent 4790df8770
commit 305927ef1c

View File

@ -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);