mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-22 08:13:20 +00:00
Module Client, clss Main : lancer l'application affiche désormais l'écran StartupFrame au lieu de MainFrame
This commit is contained in:
parent
0ed6d78cac
commit
82c6a6684c
@ -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());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user