I'm trying to load a Google Maps page inside my JavaFX application using webView and webEngine. Somehow, it doesn't load anything and I don't know why. Could you please help?
@FXML WebView webView;
WebEngine webEngine;
webView = new WebView();
webEngine = webView.getEngine();
webEngine.load("https://maps.google.de");
webView = new WebView();. You’re creating a new WebView that is replacing the one defined in your FXML file and therefore is not a part of your Stage (probably).