Java FX Container for web app
Hi, I am trying to develop a container in javaFX as a WevView to display a web app, in the NetBeans IDE
I am trying to display hola.html inside the container, which is in the same directory as the jar file, so theorically there wouldn't be any kind of problem on displaying it inside the container, but all I get is a blank page that does nothing.
Perhaps because of the resolution of the window is smaller than the resolution of the html page, that it doesn't show it?
Is there any way to change Netbeans project execution so it doesn't create an temporary directory and places the jar there so the path would fit?
Is the WebView for online pages only and does not display local ones?
I am using Linux Mint last version, also java JRE last version
public class Contenedor extends Application
public static void main(String args)
public void start(Stage primaryStage) throws Exception
WebView browser = new WebView();
WebEngine engine = browser.getEngine();
String url = "hola.html";
StackPane sp = new StackPane();
Scene root = new Scene(sp);