I try to use a JFXPanel which contains only one component: a WebView. From several manuals and blog posts I knew that I had to write something like this to add a WebView to an JFXPanel:
scene = new Scene(webView);
jfxPanel.setScene(new Group(scene));
Running this results in a WebView which doesn't fit to its JFXPanel. The WebView has a fixed size. And there is no resizing of the WebView if you resize JFXPanel. You can see it in the attached screenshot.
As soon as you omit the Group it works fine:
scene = new Scene(webView);
jfxPanel.setScene(scene);
I don't know whether it's an JFXPanel issue or an WebView issue. And I'm not sure about the version naming, but I know that I tested this with the beta b30 release.
scene = new Scene(webView);
jfxPanel.setScene(new Group(scene));
Running this results in a WebView which doesn't fit to its JFXPanel. The WebView has a fixed size. And there is no resizing of the WebView if you resize JFXPanel. You can see it in the attached screenshot.
As soon as you omit the Group it works fine:
scene = new Scene(webView);
jfxPanel.setScene(scene);
I don't know whether it's an JFXPanel issue or an WebView issue. And I'm not sure about the version naming, but I know that I tested this with the beta b30 release.