Skip to content

Commit

Permalink
Merge pull request nusCS2113-AY1920S1#8 from j-lum/tutorial-fix
Browse files Browse the repository at this point in the history
Remove references to DukeStub
  • Loading branch information
j-lum authored Aug 16, 2019
2 parents 4d42e2c + f806913 commit ce97316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/javaFxTutorialPart3.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Add a new method to handle user input:
*/
private void handleUserInput() {
Label userText = new Label(userInput.getText());
Label dukeText = new Label(DukeStub.getResponse(userInput.getText()));
Label dukeText = new Label(getResponse(userInput.getText()));
dialogContainer.getChildren().addAll(
new DialogBox(userText, new ImageView(user)),
new DialogBox(dukeText, new ImageView(duke))
Expand Down Expand Up @@ -210,7 +210,7 @@ Now, we can go back to the `Main` class and change the event handler to use our
```java
private void handleUserInput() {
Label userText = new Label(userInput.getText());
Label dukeText = new Label(DukeStub.getResponse(userInput.getText()));
Label dukeText = new Label(getResponse(userInput.getText()));
dialogContainer.getChildren().addAll(
DialogBox.getUserDialog(userText, new ImageView(user)),
DialogBox.getDukeDialog(dukeText, new ImageView(duke))
Expand Down

0 comments on commit ce97316

Please sign in to comment.