Skip to content

Instantly share code, notes, and snippets.

@AlecKotovichSAM
Created April 5, 2022 10:27
Show Gist options
  • Select an option

  • Save AlecKotovichSAM/964c2af7b4aa572c24bc4e28e51ba3a0 to your computer and use it in GitHub Desktop.

Select an option

Save AlecKotovichSAM/964c2af7b4aa572c24bc4e28e51ba3a0 to your computer and use it in GitHub Desktop.

Revisions

  1. AlecKotovichSAM created this gist Apr 5, 2022.
    19 changes: 19 additions & 0 deletions App.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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();
    }

    }