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 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 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 JPanel adminPanel = new JPanel(), profPanel = new JPanel(), studentPanel = new JPanel();
|
||||||
|
private final Color blue = new Color(53, 242, 242);
|
||||||
private JMenuBar menuBar;
|
private JMenuBar menuBar;
|
||||||
private Controller listener;
|
private Controller listener;
|
||||||
private AdminView av;
|
private AdminView av;
|
||||||
@ -136,7 +137,7 @@ public class MainMenu extends JFrame {
|
|||||||
studentPanel.setLayout(studentCards);
|
studentPanel.setLayout(studentCards);
|
||||||
studentPanel.add(cardWithTable(studentView()));
|
studentPanel.add(cardWithTable(studentView()));
|
||||||
studentCards.next(studentPanel);
|
studentCards.next(studentPanel);
|
||||||
menuBar.setBackground(Color.BLUE);
|
menuBar.setBackground(this.blue);
|
||||||
}
|
}
|
||||||
travelThroughCards(index);
|
travelThroughCards(index);
|
||||||
}
|
}
|
||||||
@ -237,7 +238,7 @@ public class MainMenu extends JFrame {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.setTitle(viewName[2]);
|
this.setTitle(viewName[2]);
|
||||||
menuBar.setBackground(Color.BLUE);
|
menuBar.setBackground(this.blue);
|
||||||
studentPanel.setLayout(studentCards);
|
studentPanel.setLayout(studentCards);
|
||||||
studentPanel.add(cardWithTable(studentView()));
|
studentPanel.add(cardWithTable(studentView()));
|
||||||
studentCards.next(studentPanel);
|
studentCards.next(studentPanel);
|
||||||
|
Loading…
Reference in New Issue
Block a user