【发布时间】:2019-02-11 12:17:57
【问题描述】:
大家好,我试图通过 java fx web 视图访问我的计算机中的网络应用程序:
public void start(Stage stage) throws Exception {
WebView webView = new WebView();
WebEngine engine = webView.getEngine();
engine.load("172.0.0.0://HOWEB/documentation:8080");//loadContent("<html> href = C:/Users/kaisios/Desktop/attempt9000.html<\\html>");
VBox vBox = new VBox();
vBox.getChildren().addAll(webView);
Scene scene = new Scene(vBox, 800, 500);
stage.setScene(scene);
stage.show();
}
但它不加载内容。 注意:我已经运行了 xamp 服务器,但我认为 url 的公式是错误的
【问题讨论】: