|
||||||||||||||
|
|
|||||||||||||
|
|
|||
|
|||
|
|||
|
Handling popup windows | ||
|
|
|
|
|
|
Popup windows can be both useful and irritating. Some internet sites rely on the use of popup windows to capture critical information, whilst other popups can be used to display advertising. WebRenderer has factored both of these issues into account opening up methods to both block and customize popup windows. | |
|
|
|
|
|
|
Blocking all popup windows | |
|
|
|
|
|
|
IBrowserCanvas
browser = BrowserFactory.spawnMozilla(); |
|
|
|
|
|
|
|
Customizing popup windows |
|
|
|
|
|
|
|
browser.addWindowListener(new WindowAdapter() { public void
onNewWindow(WindowEvent e) { //
Popup window event has been fired } |
|
|
|
Copyright © JadeLiquid Software - www.jadeliquid.com |