Skip to content

Commit

Permalink
Merge pull request nusCS2113-AY1920S1#7 from j-lum/tutorial-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
j-lum authored Aug 15, 2019
2 parents f8d56b7 + f1f2c85 commit 4d42e2c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Binary file added tutorials/assets/DaDuke.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorials/assets/DaUser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tutorials/javaFxTutorialPart1.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ javafx {

## Writing your first program

As customary, let’s start off with a simple “Hello World” program. Create a new `HelloWorld.java` class in the `duke.seedu` package. Have the class extend `javafx.application.Application`. This requires you to override the `Application#start()` method and provide a concrete implementation. Notice that the method signature for `Application#start()` has a parameter `Stage`. This is the _primary stage_ that JavaFX provides.
As customary, let’s start off with a simple “Hello World” program. Modify your `Duke` class to extend `javafx.application.Application`. This requires you to override the `Application#start()` method and provide a concrete implementation. Notice that the method signature for `Application#start()` has a parameter `Stage`. This is the _primary stage_ that JavaFX provides.

```java
import javafx.application.Application;
Expand Down
8 changes: 7 additions & 1 deletion tutorials/javaFxTutorialPart3.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ import javafx.scene.image.ImageView;
```

Next, add two images to the `main/resources/images` folder.
For this tutorial, we have two images `DaUser.png` and `DaDuke.png` to represent the user avatar and Duke's avatar respectively.
For this tutorial, we have two images `DaUser.png` and `DaDuke.png` to represent the user avatar and Duke's avatar respectively but you can use any image you want.

Image|Filename
---|---
![DaDuke](assets/DaUser.png) | `DaUser.png`
![DaUser](assets/DaDuke.png) | `DaDuke.png`


```java
public class Duke extends Application {
Expand Down

0 comments on commit 4d42e2c

Please sign in to comment.