Skip to content

Commit

Permalink
Add window title to ui
Browse files Browse the repository at this point in the history
  • Loading branch information
quzhetao01 committed Sep 20, 2023
1 parent 88274cb commit 29b0401
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file added docs/Ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/main/java/duke/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public void start(Stage stage) {
AnchorPane ap = fxmlLoader.load();
Scene scene = new Scene(ap);
stage.setScene(scene);
stage.setTitle("Funny Bot");
fxmlLoader.<MainWindow>getController().setDuke(duke);
stage.show();
} catch (IOException e) {
Expand Down

0 comments on commit 29b0401

Please sign in to comment.