-
Bug
-
Resolution: Fixed
-
P2
-
8u20
The method Scene.getStylesheets().add(String sheet) fails in OSGi environment as it runs in a classloader different from the bundle one (which calls the method).
The API should provide at least a Classloader in the signature or better a resource provider interface.
Scene scene = new Scene();
scene.getStylesheets().add(String sheetName, ClassLoader loader)
a workaround exists but cannot load images and subfiles in the css. This workaround consists in creating a temporary css file.
The API should provide at least a Classloader in the signature or better a resource provider interface.
Scene scene = new Scene();
scene.getStylesheets().add(String sheetName, ClassLoader loader)
a workaround exists but cannot load images and subfiles in the css. This workaround consists in creating a temporary css file.
- duplicates
-
JDK-8115606 Cannot run properly JavaFX application into OSGI Felix framework
- Closed
-
JDK-8096118 Exception while loading CSS in OSGi bundle
- Closed