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
Nu
I think your're missing the slashes which causes that the CSS file can't be found. Try to correct your path reference.
For example:
-root --app/Main.java --assets/double_slider.css
would be:
String css = this.getClass().getResource("/assets/double_slider.css").toExternalForm();