/** * 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.*; 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"); primaryStage.setScene(main); primaryStage.show(); } }