Question

I didnt find any document completed method on JWebbrowser object.

 String git="git(10);"
 webbrowser.executeJavaScript(git);
 String html=webbrowser.getHTMLContent();

this html is include previous page html.Bu I want to take new page. I'm waiting for help.Thanks

Was it helpful?

Solution

You use the listener:

    webBrowser.addWebBrowserListener(new WebBrowserAdapter() {
        @Override
        public void loadingProgressChanged(WebBrowserEvent e) {
            if (e.getWebBrowser().getLoadingProgress() == 100) {
                ....
            }
        }
    });
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top