I placed my css style sheet directly under the src directory, and then I try to add it to my javafx scene with the following piece of code:
scene.getStylesheets().add("style.css");
and then I get the following error:
com.sun.javafx.css.StyleManager loadStylesheetUnPrivileged
WARNING: Resource "style.css" not found.
I am using the eclipse IDE and initally I just had the css style sheet in the directory one level behind the src directory and I directly typed out the file path when trying to add the style sheet to my scene, but when using that method I received a null pointer exception. I'm not really sure what I am doing wrong, any help would be appreciated. Thanks.