• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Embedded JavaFX app in HTML

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!

I wrote a JavaFX test app, that has a transparent stage style, and the pane that makes the app itself has rounded corners. I made them round with CSS by border-radius and background radius.
All fine the app has rounded corners.

My problem is: If I embed this app into HTML, the app seems to occupy the whole rectangular space defined in the JavaScript while embedding. So the app will have rounded corners, but there will remain a white leftover space after these rounded corners that remain white.

So I can't fit my app properly into the background of the HTML page.

I tried to give a color to the tag <div> where the app is inserted, make its background transparent, but with no success.

Do you know how to solve this issue? Many thanks!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic