Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
JJtan2002 committed Sep 21, 2024
1 parent 860d9c2 commit a4bd40e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/main/java/echobot/gui/Main.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package echobot.gui;

import java.io.IOException;
import javafx.fxml.FXMLLoader;

import echobot.EchoBot;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

import echobot.EchoBot;



Expand All @@ -25,7 +26,7 @@ public void start(Stage stage) {
AnchorPane ap = fxmlLoader.load();
Scene scene = new Scene(ap);
stage.setScene(scene);
fxmlLoader.<MainWindow>getController().setDuke(duke); // inject the Duke instance
fxmlLoader.<MainWindow>getController().setDuke(duke); // inject the Duke instance
stage.show();
} catch (IOException e) {
e.printStackTrace();
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/echobot/gui/MainWindow.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package echobot.gui;


import echobot.EchoBot;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.ScrollPane;
Expand All @@ -9,7 +9,6 @@
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;

import echobot.EchoBot;

/**
* Controller for the main GUI.
Expand Down

0 comments on commit a4bd40e

Please sign in to comment.