JavaFX sample
A JavaFX window made from Ring, with the screenshot taken by the program itself.
The first run downloads the JavaFX jars (about 10 MB) into the Maven cache. See JavaFX.

Javafx hello
JavaFX: jJavaFX downloads the jars of this platform (about 10 MB, the first time), starts the toolkit and puts the program in GUI mode
ring samples/UsingJava/ecosystem/05_javafx_hello.ringSource code
# JavaFX: jJavaFX downloads the jars of this platform (about 10 MB, the first time), starts the toolkit and puts the program in GUI mode
load "java.ring"
jJavaFX("21.0.2")
jJavaFXClasses("21.0.2")
using {
"javafx.stage"
"javafx.scene"
"javafx.scene.control"
"javafx.scene.layout"
"javafx.geometry"
}
nClicks = 0
oLabel = new Label("Press the button")
oButton = new Button("Click me")
oButton.setOnAction("onClick")
oBox = (new VBox).@New([10])
oBox.setAlignment(jGetStatic("javafx.geometry.Pos","CENTER"))
oBox.getChildren().addAll([oLabel,oButton])
oStage = new Stage
oStage.setTitle("JavaFX from Ring")
oStage.setScene((new Scene).@New([oBox,320,160]))
oStage.show()
jAutoClose()
jMainLoop()
? "clicks: " + nClicks
func onClick aArgs
nClicks++
oLabel.setText("Clicked " + nClicks + " time(s)")