DJ JWebBrowser: how to show but disable Address and Button bars?
Posted
by
Nikolay Kuznetsov
on Stack Overflow
See other posts from Stack Overflow
or by Nikolay Kuznetsov
Published on 2012-10-23T04:57:51Z
Indexed on
2012/10/23
5:00 UTC
Read the original article
Hit count: 349
I am using chrriis.dj.nativeswing.swtimpl.components.JWebBrowser in my swing application to open web page.
The page is going to show "Facebook Authentication" page and I want to prevent user from inputting some other URL other than I specify and also Forward and Back buttons should be visible but not has no affect.
So following functions are applicable for my goal
setButtonBarVisible(true);
setLocationBarVisible(true);
Once user completes the authentication I will handle the locationChanged event.
@Override
public void locationChanged(WebBrowserNavigationEvent arg0) {
System.out.println("locationChanged!");
....
}
}
© Stack Overflow or respective owner