private void resetWorkshopLayout() { final String userPrompt = "This will reset the Workshop screen layout.\n" + "All tabbed views will be restored to their default positions.\n\n" + "Reset layout?"; if (FOptionPane.showConfirmDialog(userPrompt, "Reset Workshop Layout")) { if (FScreen.WORKSHOP_SCREEN.deleteLayoutFile()) { FOptionPane.showMessageDialog("Workshop layout has been reset."); } } }
private void resetDeckEditorLayout() { final String userPrompt = "This will reset the Deck Editor screen layout.\n" + "All tabbed views will be restored to their default positions.\n\n" + "Reset layout?"; if (FOptionPane.showConfirmDialog(userPrompt, "Reset Deck Editor Layout")) { if (FScreen.DECK_EDITOR_CONSTRUCTED.deleteLayoutFile()) { FOptionPane.showMessageDialog("Deck Editor layout has been reset."); } } }
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."); } } }