Search code examples
webviewjavafx-8

Working WebView program stopped displaying the full page


I have a JavaFX program that has been running fine for about one year. Now, it no longer renders the full page. I have no idea how to fix this.

It is some simple code.

//access WebView in FXML document
@FXML
WebView MyBrowser; //mywebview is the fxid

public void displayWeb() {
    WebEngine eng = MyBrowser.getEngine();
    eng.load("http://www.ghin.com/lookup.aspx");
}

If I can't fix this, I have to go back to my old dotnet program which was very unreliable.

Any ideas would be appreciated. The first image is correct and the second is wrong.

This is what the page should look like

This is what I am getting now


Solution

  • I guess the problem is with the website and not with JavaFX or the WebView because I get the exact wrong output if I just open your URL with Firefox or Chrome on my Mac.