public GeneralController(Manager manager) { this.manager = manager; ViewFactory factory = new ViewFactory(); mainFrame = factory.buildFrame(this); }