diff --git a/src/main/java/scm/address/commons/core/GuiSettings.java b/src/main/java/scm/address/commons/core/GuiSettings.java index 3ee32f917b4..a375222d6bd 100644 --- a/src/main/java/scm/address/commons/core/GuiSettings.java +++ b/src/main/java/scm/address/commons/core/GuiSettings.java @@ -16,6 +16,9 @@ public class GuiSettings implements Serializable { private static final double DEFAULT_HEIGHT = 600; private static final double DEFAULT_WIDTH = 740; + private static final int DEFAULT_X_POS = 600; + private static final int DEFAULT_Y_POS = 740; + private static final String DEFAULT_THEME_NAME = ThemeCollection.getDarkTheme().getThemeName(); private final double windowWidth; private final double windowHeight; @@ -28,7 +31,7 @@ public class GuiSettings implements Serializable { public GuiSettings() { windowWidth = DEFAULT_WIDTH; windowHeight = DEFAULT_HEIGHT; - windowCoordinates = null; // null represent no coordinates + windowCoordinates = new Point(DEFAULT_X_POS, DEFAULT_Y_POS); theme = DEFAULT_THEME_NAME; }