Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[W6.2][W13-B2] Ronak Lakhotia #913

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added resources/.DS_Store
Binary file not shown.
Binary file added resources/images/.DS_Store
Binary file not shown.
Binary file added resources/images/if_Address_Book_86957.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: seedu.addressbook.Main

3 changes: 2 additions & 1 deletion src/seedu/addressbook/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
4 changes: 4 additions & 0 deletions src/seedu/addressbook/ui/Gui.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand All @@ -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());
}
Expand Down