-1

I am getting Scene Builder Preview as following

enter image description here

but when I run my project It's displaying different as following

enter image description here

Application:- JavaFX using Jfoenix and GluonDesktop
Designing using:- Scene Builder
Development IDE:- intelliJ
OS:- MacOS Mojave 10.14.5

Is this expected behavior? Do I need to do some config to display the same in all platforms. As I am very new to JavaFX. Looking for help.

GreenROBO
  • 4,725
  • 4
  • 23
  • 43
  • It looks as if the JFoenix CSS files have not been applied to your project. Did you initialize the project correctly? I cannot be more specific because I know only very little about JFoenix. – mipa Aug 10 '19 at 13:14
  • @mipa I have not referenced any CSS in scene builder as well as intelliJ. – GreenROBO Aug 10 '19 at 13:20
  • Do I need to have any default CSS of JFoenix applied in my project even I have not used any CSS in my implementation? I am also new in JFoenix, JavaFX and GluonDesktop. :) – GreenROBO Aug 10 '19 at 13:22
  • 1
    JFoenix uses CSS internally (like JavaFX itself too) and that seems to missing. I also wonder whether JFoenix can be used together with GluonDesktop which also seems to fiddle arround with the default CSS. – mipa Aug 10 '19 at 13:31
  • Oh is it. Let me look into this more deep. (Y) – GreenROBO Aug 10 '19 at 14:02

1 Answers1

0

It was just a Theme selected by Scene Builder which was displaying effects/components of current selected UI Theme (Mine was Gluon Mobile Light theme). As I said I was very new to this I didn't have much knowledge about it.

Thank you.

GreenROBO
  • 4,725
  • 4
  • 23
  • 43