jeu-de-combat/src/launcher/Launcher.java

38 lines
866 B
Java
Raw Normal View History

2021-05-03 02:29:11 +02:00
/**
* 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.*;
2021-05-03 02:29:11 +02:00
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);
2021-05-03 02:29:11 +02:00
primaryStage.initStyle(StageStyle.UNDECORATED);
primaryStage.setTitle("Boulevard Combattant");
primaryStage.setScene(main);
primaryStage.show();
2021-05-03 02:29:11 +02:00
}
}