Intercepting
page loads is particularly useful to dynamically
block specific destinations from loading.
The blockLoad() method must be called within
the onLoadIntercept event, due to the WebRenderer
message queue and page loading schedule.
browser.addBrowserListener(new BrowserAdapter(){
public
void onLoadIntercept(BrowserEvent e) {
if(e.getURL().toLowerCase().indexOf("google.com")
!= -1) { e.blockLoad();
System.out.println("Intercepted
and blocked loading of page: "+e.getURL()); } } });