I am using DJ-Native-Swing - JWebBrowser for displaying a browser window in a tab of JTabbedPane
which also include other tabs also.
The code I am trying (on NetBeans 7.1.1) is:
browserPanel = (JPanel)
SimpleWebBrowserExample
.createContent();
// I use this line in browserPanel Properties > Customize Code
In the main(String[] arg)
method:
NativeInterface.open();
/*
* Create and display the form
*/
java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
new MyFrame().setVisible(true);
}
});
NativeInterface.runEventPump();
But the code is not working, JWebBrowser
is not displayed on the panel. What else I have to do for this?
I am Windows 7 x64, JDK1.7.0, and I have included all the libraries required for DJ Native Swing.
Also the Standalone program is working well for me.