/** * Utility method to discover the {@code Paint} used by {@code Label} * * @return Base Paint use of Labels */ public static Paint getBaseTextColor() { final Label label = new Label(BASE_COLOR); final Scene scene = new Scene(new Group(label)); scene.getRoot().styleProperty().setValue(getStyleProperty().getValue()); label.applyCss(); return label.getTextFill(); }