• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Embedded JavaFX app in HTML

 
Zooey Abb
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic