Lancement de la fenêtre du launceur
Problématique avec le fxml. Mauvaise version il semblerait ? Fichier à refaire.
This commit is contained in:
@ -9,21 +9,26 @@
|
||||
|
||||
package launcher;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.Group;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.shape.Circle;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.fxml.*;
|
||||
|
||||
public class Launcher extends Application {
|
||||
|
||||
Parent root = FXMLLoader.load("ui/main.fxml");
|
||||
Scene main = new Scene()
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user