Файл svg javafx на фоне моей сцены - PullRequest
0 голосов
/ 10 июля 2020

Я хотел бы отображать файл svg в фоновом режиме:

  public void start(Stage primaryStage) throws Exception{
            this.primaryStage = primaryStage;
            Group root = new Group(); 
            primaryStage.setTitle("Test");
            primaryStage.setScene(new Scene(root,1920, 1080));
            primaryStage.setMaximized(true);
    
    
            FileInputStream input_background_template = new 
            FileInputStream("ressources/background/template_home.svg");
            ImageView img_background_template = new ImageView(new Image(input_background_template));
        
            root.getChildren().addAll(img_background_template)
            primaryStage.show();
}

Но у меня все еще ничего нет в фоновом режиме?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...