Skip to Main Content

How to get JavaFX Inherited CSS Properties

3205266Mar 23 2016 — edited Mar 23 2016

I am looking for the command to get all properties of a Node, even those inherited from the default CSS stylesheet. The most close method I found is the "impl_getStyleMap()" but it is a deprecated method.

More precisely I have the following:

.root{ -fx-background-color: white; -fx-font-size: 18; }

And I want through java code to get the -fx-font-size that is now inherited by all scene components.

Thank you in advance

Comments
Post Details
Added on Mar 23 2016
1 comment
551 views