import java.io.File;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class Main extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    public void start(Stage primaryStage) throws Exception{
        primaryStage.setTitle("JavaFX WebView Example");

        WebView webView = new WebView();		
        //webView.getEngine().load("https://stately-speculoos-296cb3.netlify.app/");
		
		File file = new File(this.getClass().getResource("hello.html").getPath());
        try{
			webView.getEngine().load(file.toURI().toURL().toString());
		}catch(Exception ex) {
            System.err.print("error " + ex.getMessage());
            ex.printStackTrace();
        }
		
				
        VBox vBox = new VBox(webView);
        Scene scene = new Scene(vBox, 960, 600);

        primaryStage.setScene(scene);
        primaryStage.show();

    }
} 