Transférer les fichiers vers 'src/Test' #1
@ -204,14 +204,14 @@ public class MainMenu extends JFrame {
|
||||
JButton origin = (JButton) e.getSource();
|
||||
createJMenuBar();
|
||||
|
||||
if (origin.getText().equals("Admin")) {
|
||||
if (origin.getText().equals(viewName[0])) {
|
||||
this.setTitle(viewName[0]);
|
||||
menuBar.setBackground(Color.RED);
|
||||
adminPanel.setLayout(adminCards);
|
||||
adminPanel.add(cardWithTable(adminView()));
|
||||
cardIndex = 1;
|
||||
|
||||
} else if (origin.getText().equals("Prof")) {
|
||||
} else if (origin.getText().equals(viewName[1])) {
|
||||
this.setTitle(viewName[1]);
|
||||
menuBar.setBackground(Color.MAGENTA);
|
||||
profPanel.setLayout(profCards);
|
||||
|
Loading…
Reference in New Issue
Block a user