• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

webEngine.load doesn't work on web application

 
Greenhorn
Posts: 5
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't play dumb with me! But you can try this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic