private void resetMatchScreenLayout() { final String userPrompt = "This will reset the layout of the Match screen.\n" + "If you want to save the current layout first, please use " + "the Dock tab -> Save Layout option in the Match screen.\n\n" + "Reset layout?"; if (FOptionPane.showConfirmDialog(userPrompt, "Reset Match Screen Layout")) { if (FScreen.deleteMatchLayoutFile()) { FOptionPane.showMessageDialog("Match Screen layout has been reset."); } } }