Custom Underline javaFX

1

You can leave text (or any text node) with custom underline. Like microsoft word when there is a word with an error.

Using CSS

    
asked by anonymous 08.02.2016 / 01:39

1 answer

1

So you can try using javafx8's textflow to structure your text, so you get individualized control by word. I did not test this within the textflow, but in a label you can do:

Erro
{
    -fx-border-width: 0 0 2 0;
    -fx-border-color: red;
    -fx-border-style: dashed;
}

Instead of dashed dotted could be used to be dotted instead of dashed.

    
09.02.2016 / 19:29