google-code-export / javachromiumembedded

Automatically exported from code.google.com/p/javachromiumembedded
6 stars 2 forks source link

Dispose events/Extension of Component #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Making JCEF to be embedded into JTabbedPanes or JPanel like DJNativeSwing 
browser

What is the expected output? What do you see instead?
I have made changes to the MainFrame class to extend JPanel and loaded it to 
the JTabbedPane, but I need to close the specific instance of the CefApp 
browser when I close the JTabbedPane, which I can't figure out how to be done. 
In the MainFrame class, all the instances are disposed during window closing 
event, instead can it be done similar to DJNativeSwing browser where the 
browser is disposed when it is closed?

Can this be extended similar to DJNativeSwing such that the browser component 
can be loaded to the JPanel or JTabbedPane straightaway?

What version of the product are you using? On what operating system?
jdk-7u65-windows-i586 on Windows 7 (x64)

Original issue reported on code.google.com by arun.vc....@gmail.com on 13 Aug 2014 at 3:10

GoogleCodeExporter commented 9 years ago
Did you try calling CefBrowser.close()?

Original comment by magreenb...@gmail.com on 20 Aug 2014 at 3:16

GoogleCodeExporter commented 9 years ago
This worked, pls close this issue. Thanks for the suggestion.

Original comment by arun.vc....@gmail.com on 3 Sep 2014 at 12:20

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 3 Sep 2014 at 3:15