protected void addCSS ( final Scene scene , final StyleSheetItem styleSheetItem ) { final URL styleSheetURL = styleSheetItem . get ( ) ; if ( styleSheetURL == null ) { LOGGER . error ( CSS_LOADING_ERROR , styleSheetItem . toString ( ) , ResourceParameters . STYLE_FOLDER . get ( ) ) ; } else { scene . getStylesheets ( ) . add ( styleSheetURL . toExternalForm ( ) ) ; } }
Attach a new CSS file to the scene using the default classloader .