Does JavaFX web viewer support loading a web page from a string of html code? My code is currently functional under scenario 1 below. However, I will need to break the webFile up into two pieces (top & bot), and then insert a string of html in between. The final result is loaded via webviewer. Please see #2 for my intent (it doesn't work). Can anyone suggest on how I might be able to pull this off? Thanks!
1.
String webFileStr = (new File(webFile)).toURI().toURL().toString();
webEngine.load(webFileStr);
2.
String webStr = topSlice + data + botSlice;
webEngine.load(webStr);