47484950515253
public MenuScreen(String title) { super(title); // Do nothing on close because we are closing the main screen // differently - with a prompt. setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); addWindowListener(new MenuScreenDisposeListener()); }