I have a problem with my program. I have a stage with web-view and I want to change HTML file sometimes, but I can't reload web-view and see my changes dynamically.
public void showme(String what) {
try {
WebEngine webEngine = webvw.getEngine();
System.out.print("vsengine_projects/" + xoxo + "/" + what);
URL url = this.getClass().getResource("vsengine_projects/" + xoxo + "/" + what);
webEngine.load(url.toString());
System.out.println("KK");
} catch (Exception e) {
System.err.println("EXC " + e);
}
}
This code works, but just for the first version of the HTML file, when I change something in the HTML file and call showme() again, nothing happen. The Html file is in a local directory. Is there any possibility to dynamically reload web-view?