I am adding a NewWindowManager" to my jxBrowser component.
When it gets to the "evaluateWindow(final NewWindowsParams params)" method, the params.getUrl() is always blank instead of the Url the link is going to.
Any expalation as to what I'm doing wrong?
Thanks
Some code snippet (*** shows bad lines):
public NewWindowContainer evaluateWindow (final NewWindowParams params) {
return new NewWindowContainer() {
public void insertBrowser(final Browser browser) {
final JFrame popupFrame = new JFrame();
Container contentPane = popupFrame.getContentPane();
contentPane.add(browser.getComponent(), BorderLayout.CENTER);
*** String url = params.getTargetName(); // THIS IS BLANK!!!
*** url = params.getUrl(); // THIS IS BLANK!!!
Rectangle r = params.getBounds();
r.width = newBrowserWidth;
r.height = newBrowserHeight;
popupFrame.setBounds(r);
popupFrame.setVisible(true);
Hi Bruce,
You receive blank TargetName and URL parameters for Mozilla engine because it doesn't provide them when new popup window should be opened. It works for IE engine and we will find a way to implement support of these parameters for Mozilla engine too in one of the next version of JxBrowser. Probably in 2.3 (March).
Regards,
Vladimir Ikryanov
Thanks for the information.
Is there any work-around for now?
Hi Bruce,
Unfortunately we couldn't provide a workaround for now
But we will let you know as soon as possible when the issue is solved.
Regards,
Vladimir Ikryanov