/** * CLASS LAUNCHER * * Fenêtre de configuration du jeu préalablement au lancement d'une partie * * @author François Autin * */ package launcher; import javafx.application.Application; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; import javafx.stage.StageStyle; import javafx.fxml.*; public class Launcher extends Application { /* * Start method is used by Launcher as an implementation of the Application class to create a JavaFX thread to display the GUI window */ public void start(Stage primaryStage) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("ui/launcher.fxml")); Scene main = new Scene(root); primaryStage.initStyle(StageStyle.UNDECORATED); primaryStage.setTitle("Boulevard Combattant"); primaryStage.setScene(main); primaryStage.show(); } }