Dynamically add CSS stylesheets in JavaFX

前端 未结 5 722
我寻月下人不归
我寻月下人不归 2021-01-05 11:08

I would like to add a CSS file which is located somewhere on the filesystem. The purpose is to write an application where the user can add JavaFX CSS files (which are create

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-05 11:16

    scene.setUserAgentStylesheet("Assets/StyleSheets/Styless.css");
    

提交回复
热议问题