diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 000000000..5c4aa5ec3 Binary files /dev/null and b/.DS_Store differ diff --git a/resources/.DS_Store b/resources/.DS_Store new file mode 100644 index 000000000..5bc5fe495 Binary files /dev/null and b/resources/.DS_Store differ diff --git a/resources/images/.DS_Store b/resources/images/.DS_Store new file mode 100644 index 000000000..4df3fe222 Binary files /dev/null and b/resources/images/.DS_Store differ diff --git a/resources/images/if_Address_Book_86957.png b/resources/images/if_Address_Book_86957.png new file mode 100644 index 000000000..29810cf1f Binary files /dev/null and b/resources/images/if_Address_Book_86957.png differ diff --git a/src/META-INF/MANIFEST.MF b/src/META-INF/MANIFEST.MF new file mode 100644 index 000000000..db183a2d6 --- /dev/null +++ b/src/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: seedu.addressbook.Main + diff --git a/src/seedu/addressbook/Main.java b/src/seedu/addressbook/Main.java index 3925fbb19..a23363442 100644 --- a/src/seedu/addressbook/Main.java +++ b/src/seedu/addressbook/Main.java @@ -14,9 +14,10 @@ public class Main extends Application implements Stoppable{ /** Version info of the program. */ - public static final String VERSION = "AddessBook Level 3 - Version 1.0"; + public static final String VERSION = "AddressBook Level 3 - Version 1.0"; private Gui gui; + private int check; @Override public void start(Stage primaryStage) throws Exception{ diff --git a/src/seedu/addressbook/ui/Gui.java b/src/seedu/addressbook/ui/Gui.java index ed21989a4..27171d47c 100644 --- a/src/seedu/addressbook/ui/Gui.java +++ b/src/seedu/addressbook/ui/Gui.java @@ -2,6 +2,7 @@ import javafx.fxml.FXMLLoader; import javafx.scene.Scene; +import javafx.scene.image.Image; import javafx.stage.Stage; import seedu.addressbook.logic.Logic; import seedu.addressbook.Main; @@ -22,6 +23,7 @@ public class Gui { private final Logic logic; private MainWindow mainWindow; + private Stage primaryStage; private String version; public Gui(Logic logic, String version) { @@ -30,6 +32,8 @@ public Gui(Logic logic, String version) { } public void start(Stage stage, Stoppable mainApp) throws IOException { + this.primaryStage = stage; + this.primaryStage.getIcons().add(new Image("file:resources/images/if_Address_Book_86957.png")); mainWindow = createMainWindow(stage, mainApp); mainWindow.displayWelcomeMessage(version, logic.getStorageFilePath()); }