Integrating JCEF with JavaFx

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Integrating JCEF with JavaFx

Postby kallol » Thu Aug 31, 2017 10:38 am

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 !!!!
kallol
Newbie
 
Posts: 5
Joined: Tue Aug 08, 2017 11:03 pm

Re: Integrating JCEF with JavaFx

Postby magreenblatt » Thu Aug 31, 2017 11:42 am

magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 37 guests