Transférer les fichiers vers 'src/Test' #1

Closed
brinet wants to merge 11 commits from master into TestFelix
Showing only changes of commit f44d748a43 - Show all commits

View File

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