public WindowController(MainWindow mainWindow) {
   this.mainWindow = mainWindow;
   mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 }
 private void changeDisplayedPanel(JPanel panel) {
   mainWindow.changeDisplayedPanel(panel);
 }