fud0 / javacef

Automatically exported from code.google.com/p/javacef
0 stars 0 forks source link

Chromium window inside jframe #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Is it possible to open browser inside JFrame window instead of opening a 
separate widget. I want to integrate this inside my swing application but don't 
find any way to show a browser window in side a panel. Can you please give an 
idea on that.

Thanks

Original issue reported on code.google.com by MNomanSa...@gmail.com on 17 Jun 2015 at 8:38

GoogleCodeExporter commented 9 years ago
possible way is to use SWT_AWT.new_Shell(..).

 Display display = new Display();
            Shell shell = SWT_AWT.new_Shell(display, canvas);

reference: 
http://rolandtapken.de/blog/2011-01/java-howto-embed-swt-widget-swing-jframe

Original comment by MNomanSa...@gmail.com on 17 Jun 2015 at 10:03

GoogleCodeExporter commented 9 years ago
I didn't try to embed this in AWT before, but it should work on Windows and 
Linux. Also, I think AWT and SWT are not compatible on Mac.

Original comment by wjyw...@gmail.com on 26 Jun 2015 at 2:33