import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
import javafx.stage.Stage;

public class Test extends Application
{
    public static final void main(final String[] args)
    {
        Application.launch(args);
    }

    @Override
    public final void start(final Stage stage) throws Exception
    {
        var webView = new WebView();
        var webEngine = webView.getEngine();
        webEngine.setJavaScriptEnabled(true);

        // note, 'maps.html' must be added to the JAR that contains this application
        //
        Platform.runLater(() -> webEngine.load(ClassLoader.getSystemClassLoader().getResource("maps.html").toString()));
        stage.setScene(new Scene(webView));
        stage.show();
    }
}

