0

As I mentioned in the title I need to change the color of the error message. By default it shows in black.

example image

Here is my code so far :

RequiredFieldValidator rfv = new RequiredFieldValidator();
        branch_name_txt.getValidators().add(rfv);
        rfv.setMessage("This field is not optional.");
        rfv.setIcon(new GlyphIcons().setFontAwesomeIconGlyph('\uf00d', Color.RED, 20.0));
Madushan Perera
  • 2,568
  • 2
  • 17
  • 36

1 Answers1

1

Googling a while I found this comment response on a youtube video

Conclusion:

.error * {
    -fx-text-fill: ce-yellow;
}

Edit: It seems that jfoenix version 1.6.0 no longer uses .error to style this tiny label below the text field. Use .error-label instead.

1w3j
  • 566
  • 8
  • 24