if(location != null) {
browserWindow.setLocation(location);
}
}
Object[] listeners = nativeWebBrowser.listenerList.getListenerList();
WebBrowserWindowOpeningEvent e = null;
for(int i=listeners.length-2; i>=0 && newWebBrowser != null; i-=2) {
if(listeners[i] == WebBrowserListener.class) {
if(e == null) {
e = new WebBrowserWindowOpeningEvent(webBrowser, newWebBrowser, location, size);
}
((WebBrowserListener)listeners[i + 1]).windowOpening(e);
}
}
new Thread() {