adding css file to stylesheets in javafx

前端 未结 18 1356
[愿得一人]
[愿得一人] 2020-12-06 05:27

Language: JavaFX

IDE: Netbeans

Problem: I\'m trying to add a css file to the stylesheet, but the first line of the following code always generates a Nu

18条回答
  •  没有蜡笔的小新
    2020-12-06 06:06

    put your yourname.css file directly under src directory.

    scene.getStylesheets().add("yourname.css")
    

    clean and build required

提交回复
热议问题