### Get CSS file caspian or modena

The default style sheet for
• JavaFX2 is caspian.css
• JavaFX8 is modena.css
which are embedded in a file called jfxrt.jar (using JDK8).
This file can be found in the jdk folder, subfolder jre\lib\ext\.
To extract caspian.css use:
jar -xf jfxrt.jar com/sun/javafx/scene/control/skin/caspian/caspian.css
To extract modena.css use:
c:\Daten\b4\ztools\jd-gui\libs>jar -xf jfxrt.jar com/sun/javafx/scene/control/skin/modena/modena.css
Notes
This might require admin rights depending on where the jdk is installed, else
copy the file jfxrt.jar to a temporary folder and extract.
Example:
• Create a folder \caspian
• Set the folder \caspian
• Copy c:\Program Files (x86)\Java\jdk8\jre\lib\ext\jfxrt.jar to the \caspian
• Extract caspian.css: "c:\Program Files (x86)\Java\jdk8\bin\jar" -xf jfxrt.jar com/sun/javafx/scene/control/skin/caspian/caspian.css
• The file caspian.css is found in:
\com\sun\javafx\scene\control\skin\caspian\
The same applies for modena in newer versions of the JDK.
Note
Renaming jfxrt.jar to jfxrt.zip enables to view with a ZIP viewer the content.
To view the caspian content, goto folder com\sun\javafx\scene\control\skin\caspian.
The same applies for modena.
These folders also contain images.

Changed: 2018-04-30 13:50, Category: CSS, File: T6C177M1289.htm, ID: 1289