• Post Reply Bookmark Topic Watch Topic
  • New Topic

Embedded JavaFX app in HTML  RSS feed

Zooey Abb
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!