adding css file to stylesheets in javafx

前端 未结 18 1316
[愿得一人]
[愿得一人] 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 05:59

    It's pretty much simple.

    this.scene.setUserAgentStylesheet(/resources/blabla.css);
    

    This is what worked for me-

提交回复
热议问题