I wonder if you have taken a second look at the possibility of rendering the native canvas to a JavaFX node. This would close the gap significantly for many JavaFX developers out there. There has been success with embedding CEF (chromium embedded framework), but what I like so much about DJ is that I don't have to package the browser with my application, it simply uses the Edge WebView2 that's already on the users machine.
When I want to use DJ JWebBrowser, I do one of two things.
1. Open up a JWebBrowser in a separate JFrame and have a 2 window application with both a JavaFX stage and a JFrame, which are able to communicate back in for.
2. I developed a JWebBrowser JavaFX "hack" Node, which creates the JWebBrowser in a undecorated JDialog which is essentially binded to Node. Whenever the node is moved for resized, the JDialog is repositioned accordingly, setAlwaysOnTop to true and back to false, so that it is always on top of the node.
Now even though I have JCEF working in JavaFX, as well as a DJ "hack", I would still love to see rendering directly to a JavaFX node in the same way that I have JCEF set up. I believe it is quite possible, but I figured I'd refer to you first since you are obviously much more familiar with the DJ source code.
Hi Chris,
I wonder if you have taken a second look at the possibility of rendering the native canvas to a JavaFX node. This would close the gap significantly for many JavaFX developers out there. There has been success with embedding CEF (chromium embedded framework), but what I like so much about DJ is that I don't have to package the browser with my application, it simply uses the Edge WebView2 that's already on the users machine.
When I want to use DJ JWebBrowser, I do one of two things.
1. Open up a JWebBrowser in a separate JFrame and have a 2 window application with both a JavaFX stage and a JFrame, which are able to communicate back in for.
2. I developed a JWebBrowser JavaFX "hack" Node, which creates the JWebBrowser in a undecorated JDialog which is essentially binded to Node. Whenever the node is moved for resized, the JDialog is repositioned accordingly, setAlwaysOnTop to true and back to false, so that it is always on top of the node.
Now even though I have JCEF working in JavaFX, as well as a DJ "hack", I would still love to see rendering directly to a JavaFX node in the same way that I have JCEF set up. I believe it is quite possible, but I figured I'd refer to you first since you are obviously much more familiar with the DJ source code.
Thanks,
Thomas