import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.control.Label;

public class JavaFXversion extends Application 
{
    public void start(Stage stage) 
    {
        String javaVersion   = System.getProperty("java.version");
        String javafxVersion = System.getProperty("javafx.version");
        Label     label = new Label("Java version " + javaVersion + ", running with JavaFX " + javafxVersion);
        StackPane pane  = new StackPane(label); 
        Scene     scene = new Scene(pane, 640, 480);
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) 
    {
        launch();
    }
}