Skip to content

Instantly share code, notes, and snippets.

@bitterfox
Forked from denkspuren/WebApp.java
Created July 24, 2016 17:41
Show Gist options
  • Save bitterfox/adb8725c264e0fe060867b64e3c32528 to your computer and use it in GitHub Desktop.
Save bitterfox/adb8725c264e0fe060867b64e3c32528 to your computer and use it in GitHub Desktop.
Shinya's Demo on https://youtu.be/op6zZDypPg8 in pure Java 8/9
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
public class WebApp extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage stage) throws Exception {
WebView wv = new WebView();
wv.getEngine().load("http://www.thm.de");
stage.setScene(new Scene(wv));
stage.show();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment