Setting stylesheets declaratively in FXML

后端 未结 3 726
余生分开走
余生分开走 2021-02-18 20:37

In HTML we are used to niceties of being able to set stylesheets programmatically like


But the examples of

3条回答
  •  悲哀的现实
    2021-02-18 21:05

    Yes, see for instance example 4-8 of this tutorial, by applying the following attribute to a node:

    stylesheets="fxmlexample/Login.css"
    

    e.g.

    
    

提交回复
热议问题