Skip to content

Instantly share code, notes, and snippets.

@AlecKotovichSAM
Created April 5, 2022 10:27
Show Gist options
  • Save AlecKotovichSAM/964c2af7b4aa572c24bc4e28e51ba3a0 to your computer and use it in GitHub Desktop.
Save AlecKotovichSAM/964c2af7b4aa572c24bc4e28e51ba3a0 to your computer and use it in GitHub Desktop.
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");
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment