有没有办法将图像作为舞台的背景而不是先将其添加到 ImageView?
ImageView splash = new ImageView(getClass().getResource("/splash.png").toExternalForm());
VBox splashLayout = new VBox();
splashLayout.getChildren().addAll(splash, progressText, loadProgress);
Scene splashScene = new Scene(splashLayout);
initStage.setScene(splashScene);