Mise à jour de 'src/Test/MainMenu.java'
This commit is contained in:
parent
4790df8770
commit
305927ef1c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user