Module Client, clss Main : lancer l'application affiche désormais l'écran StartupFrame au lieu de MainFrame

This commit is contained in:
Notmoo-PC\Notmoo 2017-10-09 16:22:30 +02:00
parent 0ed6d78cac
commit 82c6a6684c

View File

@ -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.components.generics.toast.ToastFactory;
import com.pqt.client.gui.ressources.css.GUICssTool; import com.pqt.client.gui.ressources.css.GUICssTool;
import com.pqt.client.gui.ressources.strings.GUIStringTool; import com.pqt.client.gui.ressources.strings.GUIStringTool;
import com.pqt.client.gui.startup_frame.StartupFrame;
import com.pqt.client.module.ClientBackEndModuleManager; import com.pqt.client.module.ClientBackEndModuleManager;
import javafx.application.Application; import javafx.application.Application;
import javafx.scene.Scene; import javafx.scene.Scene;
@ -31,8 +32,8 @@ public class Main extends Application{
mainFrame.addModule(new StatScreen(moduleManager.getStatService())); mainFrame.addModule(new StatScreen(moduleManager.getStatService()));
mainFrame.addModule(new AccountScreen(moduleManager.getAccountService())); mainFrame.addModule(new AccountScreen(moduleManager.getAccountService()));
StartupFrame startupFrame = new StartupFrame(moduleManager.getAccountService(), moduleManager.getNetworkService());
Scene scene = new Scene(mainFrame.getPane(), 800, 600); Scene scene = new Scene(startupFrame.getPane());
scene.getStylesheets().clear(); scene.getStylesheets().clear();
scene.getStylesheets().addAll(getClass().getResource(GUICssTool.getCssFilePath()).toExternalForm()); scene.getStylesheets().addAll(getClass().getResource(GUICssTool.getCssFilePath()).toExternalForm());