From a4bd40e554fdeb50cc7203ce71023288a8f05227 Mon Sep 17 00:00:00 2001 From: JJtan2002 Date: Sat, 21 Sep 2024 13:35:23 +0800 Subject: [PATCH] Fix coding style --- src/main/java/echobot/gui/Main.java | 7 ++++--- src/main/java/echobot/gui/MainWindow.java | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/echobot/gui/Main.java b/src/main/java/echobot/gui/Main.java index 609e23b082..5a14a3fa3e 100644 --- a/src/main/java/echobot/gui/Main.java +++ b/src/main/java/echobot/gui/Main.java @@ -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; @@ -25,7 +26,7 @@ public void start(Stage stage) { AnchorPane ap = fxmlLoader.load(); Scene scene = new Scene(ap); stage.setScene(scene); - fxmlLoader.getController().setDuke(duke); // inject the Duke instance + fxmlLoader.getController().setDuke(duke); // inject the Duke instance stage.show(); } catch (IOException e) { e.printStackTrace(); diff --git a/src/main/java/echobot/gui/MainWindow.java b/src/main/java/echobot/gui/MainWindow.java index 8aa2ffa0a5..dc48e9c222 100644 --- a/src/main/java/echobot/gui/MainWindow.java +++ b/src/main/java/echobot/gui/MainWindow.java @@ -1,6 +1,6 @@ package echobot.gui; - +import echobot.EchoBot; import javafx.fxml.FXML; import javafx.scene.control.Button; import javafx.scene.control.ScrollPane; @@ -9,7 +9,6 @@ import javafx.scene.layout.AnchorPane; import javafx.scene.layout.VBox; -import echobot.EchoBot; /** * Controller for the main GUI.