/** Sets the window position and dimenstions */ private static void initialize() { Main.setClosing(false); Main.setCardIcon(Main.lightsOutCard, "lightsOut", "selected"); LightsOut.setDifficulty(defaultDifficulty); mainWindowX = Main.getWindowPositionX(); mainWindowY = Main.getWindowPositionY(); mainWindowW = Main.getWindowDimensionsW(); mainWindowH = Main.getWindowDimensionsH(); windowW = 600; windowH = mainWindowH; windowX = (mainWindowX + mainWindowW + 20); windowY = (mainWindowY); }
/** * Sets the difficulty to the given parameter * * @param diff Difficulty */ private static void setDifficulty(String diff) { LightsOut.setDifficulty(diff); }