Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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 get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic