setBounds(0, 0, width, height);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public void createMenuBar(Application application) {
MenuFactory menuFactory = new MenuFactory();
JMenuBar menuBar = menuFactory.createMenuBar(application);
setJMenuBar(menuBar);
}