From 82c6a6684c1b1276f81e0339544e6f86412d149a Mon Sep 17 00:00:00 2001 From: "Notmoo-PC\\Notmoo" Date: Mon, 9 Oct 2017 16:22:30 +0200 Subject: [PATCH] =?UTF-8?q?Module=20Client,=20clss=20Main=20:=20lancer=20l?= =?UTF-8?q?'application=20affiche=20d=C3=A9sormais=20l'=C3=A9cran=20Startu?= =?UTF-8?q?pFrame=20au=20lieu=20de=20MainFrame?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Workspace/client/src/main/java/com/pqt/client/Main.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Workspace/client/src/main/java/com/pqt/client/Main.java b/Workspace/client/src/main/java/com/pqt/client/Main.java index 2231489d..65ae061c 100644 --- a/Workspace/client/src/main/java/com/pqt/client/Main.java +++ b/Workspace/client/src/main/java/com/pqt/client/Main.java @@ -8,6 +8,7 @@ import com.pqt.client.gui.modules.stock_screen.StockScreen; import com.pqt.client.gui.ressources.components.generics.toast.ToastFactory; import com.pqt.client.gui.ressources.css.GUICssTool; import com.pqt.client.gui.ressources.strings.GUIStringTool; +import com.pqt.client.gui.startup_frame.StartupFrame; import com.pqt.client.module.ClientBackEndModuleManager; import javafx.application.Application; import javafx.scene.Scene; @@ -31,8 +32,8 @@ public class Main extends Application{ mainFrame.addModule(new StatScreen(moduleManager.getStatService())); mainFrame.addModule(new AccountScreen(moduleManager.getAccountService())); - - Scene scene = new Scene(mainFrame.getPane(), 800, 600); + StartupFrame startupFrame = new StartupFrame(moduleManager.getAccountService(), moduleManager.getNetworkService()); + Scene scene = new Scene(startupFrame.getPane()); scene.getStylesheets().clear(); scene.getStylesheets().addAll(getClass().getResource(GUICssTool.getCssFilePath()).toExternalForm());