reset password
Author Message
Mgerlit
Posts: 5
Posted 18:08 Nov 14, 2015 |

Im trying to import a style sheet into my java application using the code:

        scene.getStylesheets().add("C:/Users/matthew/Desktop/Folders/CS201/CS202/Tinvey/visual");

but, the terminal is returning:

Nov 14, 2015 6:05:44 PM com.sun.javafx.css.StyleManager loadStylesheetUnPrivileged
WARNING: Resource "C:/Users/matthew/Desktop/Folders/CS201/CS202/Tinvey/visual" not found.

and loading the program without the styling.

M_Hsu
Posts: 19
Posted 18:18 Nov 14, 2015 |
Mgerlit wrote:

Im trying to import a style sheet into my java application using the code:

        scene.getStylesheets().add("C:/Users/matthew/Desktop/Folders/CS201/CS202/Tinvey/visual");

but, the terminal is returning:

Nov 14, 2015 6:05:44 PM com.sun.javafx.css.StyleManager loadStylesheetUnPrivileged
WARNING: Resource "C:/Users/matthew/Desktop/Folders/CS201/CS202/Tinvey/visual" not found.

and loading the program without the styling.

You need to include the file name, too (the full path to the CSS file)

Mgerlit
Posts: 5
Posted 18:39 Nov 14, 2015 |

Thank you, it works now.