I\'m subclassing many of the JavaFX 2 classes to distribute them as part of a library that will be used by others. This requires that a stylesheet (part of the library) be a
I've only had luck with this syntax as found in the Ensemble sample:
scene.getStylesheets().addAll(Ensemble2.class.getResource("ensemble2.css").toExternalForm());