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

35 lines
745 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 java.io.FileInputStream;
import javafx.application.Application;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.fxml.*;
2021-05-03 02:29:11 +02:00
public class Launcher extends Application {
public void start(Stage primaryStage) throws Exception {
FileInputStream r_launcher = new FileInputStream("ui/launcher.fxml");
FXMLLoader floader = new FXMLLoader();
Parent root = floader.load(r_launcher);
Scene main = root.getScene();
primaryStage.setTitle("Boulevard Combattant");
2021-05-03 02:29:11 +02:00
primaryStage.setScene(main);
primaryStage.show();
2021-05-03 02:29:11 +02:00
}
}