public WindowController(MainWindow mainWindow) { this.mainWindow = mainWindow; mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }