RichTextArea: how to set wavy underline using CSS?

PavelTurk pavelturk2000 at gmail.com
Sun Apr 27 18:27:04 UTC 2025


RichParagraph.Builder has public RichParagraph.Builder addWavyUnderline(int start, int length, Color color) method.

However, I can't find a way how to make a wavy underline via CSS. It is very important for me because I want to make all styling via CSS -
I don't want to make users use different mechanisms  for styling (CSS,  code).

Fox example, RichTextFX contains the following rules:

     /* the color of the underline */
     -rtfx-underline-color: <paint>;

     /* the radius used to create waved underline */
     -rtfx-underline-wave-radius: <size>;

Could anyone say how to do it in JFX RichTextArea?

Best regards, Pavel


More information about the openjfx-dev mailing list