Created
May 13, 2014 08:34
-
-
Save brunoborges/25b74d6eed69fb191d9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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