This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boolean backgroundLoading = true; | |
Image image = new Image(url, backgroundLoading); | |
ImageView imageView = new ImageView(image); | |
stackPane.getChildren().add(imageView); | |
stackPane.setStyle("-fx-background-color: #3270B7"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App extends Application { | |
@Override | |
public void start(Stage stage) { | |
var javaVersion = SystemInfo.javaVersion(); | |
var javafxVersion = SystemInfo.javafxVersion(); | |
var label = new Label("Hello, JavaFX " + javafxVersion + ", running on Java " + javaVersion + "."); | |
var scene = new Scene(new StackPane(label), 640, 480); | |
stage.setTitle("SaM Solutions JavaFX App"); |