I am trying to use javaFx for my application. I have a java server tested and running code, actually its a library that initiates server. I have problem loading file from javafx's webview. Suppose the server is running on port 2345 then the following shows javafx's webview blank.
-- some code ---
Webview view = new Webview();
view.getEngine().load("http://localhost:2345/sample.html");
---- some code ---
The content loads fine from the web browser but not from the javaFx webview. What is preventing webview to load content/file ? My guess was that the webview load is instantiated before the server is started, so I worked with javaFx runLater but it didn't solve. Any help will be appreciated?