Hi,
I am trying to embed JCEF in JavaFX using the SwingNode class of JavaFX. But when I try to run the program the Chromium Browser component does not get rendered and black background comes in place of the chromium browser.
I have tried using the javax.media.opengl.awt.GLJPanel but am facing the same issue.
PFB the code for the same -
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run()
{
ChromiumPanel cPanel = new ChromiumPanel("https://www.google.co.in", false, false);
swingNode.setContent(cPanel);
}
});
Where ChromiumPanel is the class which is instantiating the JCEF classes.
How can I successfully render the chromium component in JavaFX ??
Thanks in advance !!!!