I am currently working with javafx and using CSS for styling.
I want to know whether it is possible to access java class variables in css or not.
For example.
I have a class Size in package constants.
public class Size {
public static final int VBOX_SPACING = 10;
}
Here is the css file
.vbox {
-fx-spacing: constants.Size.VBOX_SPACING;
}
This code giving me error (most foolish way to do this).
I just want to know whether it is possible or not.
I don't want to declare variables in css.
Any answer would be really helpful.