Created
March 28, 2017 22:17
-
-
Save sentientmonkey/b49097e14bd435eaee1629ed6d908a0c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| package sample; | |
| import javafx.application.Application; | |
| import javafx.scene.Scene; | |
| import javafx.stage.Stage; | |
| import javafx.scene.web.WebEngine; | |
| import javafx.scene.web.WebView; | |
| public class Main extends Application { | |
| @Override | |
| public void start(Stage primaryStage) throws Exception{ | |
| final WebView browser = new WebView(); | |
| final WebEngine webEngine = browser.getEngine(); | |
| webEngine.load("http://www.google.com"); | |
| primaryStage.setTitle("Hello Gooooogle"); | |
| Scene scene = new Scene(browser); | |
| primaryStage.setScene(scene); | |
| primaryStage.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