|
Blocks :
|
|
|
Blocks :
|
|
|
Duplicate :
|
|
|
Relates :
|
The following fails to render anything beyond the initial blurry background image. Maybe the JS engine dies? Not sure.
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
/**
*/
public class HelloWebView extends Application {
@Override public void start(Stage stage) throws Exception {
WebView web = new WebView();
web.getEngine().load("http://famo.us/");
Scene scene = new Scene(web);
stage.setScene(scene);
stage.setTitle("HelloWebView");
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
|