Skip to content

Instantly share code, notes, and snippets.

@brunoborges
Created May 13, 2014 08:34
Show Gist options
  • Save brunoborges/25b74d6eed69fb191d9e to your computer and use it in GitHub Desktop.
Save brunoborges/25b74d6eed69fb191d9e to your computer and use it in GitHub Desktop.
public class WebViewSample extends Application {
@Override public void start(Stage stage) {
WebView browser = new WebView();
browser.getEngine().load("http://twitter.com/brunoborges");
StackPane root = new StackPane();
root.getChildren().add(browser);
stage.setTitle("WebView");
stage.setScene(new Scene(root, 750, 500));
stage.show();
}
public static void main(String[] args) { launch(args); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment