Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webEngine.load doesn't work on web application

 
Fabio D'Orta
Greenhorn
Posts: 5
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

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?

Thank you for your attention.

Fabio
 
Fabio D'Orta
Greenhorn
Posts: 5
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Have a nice day,

Fabio
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic