Created
January 11, 2015 04:19
Códigos da postagem sobre WEB View do Aprendendo-javafx.blogspot.com
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
import javafx.application.Application; | |
import javafx.stage.Stage; | |
import javafx.scene.web.WebView; | |
import javafx.scene.Scene; | |
/** | |
* | |
* @author william | |
*/ | |
public class SimplesWEBView extends Application { | |
@Override | |
public void start(Stage s) { | |
// O nó em sí, que será mostrado | |
WebView webView = new WebView(); | |
// A engine é do tipo WebEngine | |
webView.getEngine().load("http://aprendendo-javafx.blogspot.com"); | |
// criamos a cena e adicionamos no nosso stage | |
s.setScene(new Scene(webView)); | |
// mostramos | |
s.show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment