Created
April 5, 2022 10:27
-
-
Save AlecKotovichSAM/964c2af7b4aa572c24bc4e28e51ba3a0 to your computer and use it in GitHub Desktop.
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"); | |
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