I was trying to develop a web application with javafx that shows google maps. I have used netbeans to generate the html file that embeds the application.
An example code I have found on internet is the following:
The problem is that when I open the html file generated by netbeans (located in the dist/ folder) in the browser I get a white screen where there should be the webview loaded.
Do you have the same problem or I'm missing something?
I have found the solution googling on the internet (stackoverflow). I will post the reply for anybody who will find the same problem.
In netbeans do the following:
1) File | New Project | JavaFx | JavaFx Application
2) Right click on the Project name and select Properties
3) In Build section go to Deployment and check the Request unrestricted access
4) In the Run section go to Run and select in Browser.
Following these steps the webview is shown on the web application.