Updating TableView row appearance

前端 未结 3 571
情话喂你
情话喂你 2020-12-03 14:44

I\'m having some dificulties to change the appearance of some TableView rows. The line should show the text with a stroke and in red. Actually, I can show it in red color bu

3条回答
  •  感情败类
    2020-12-03 15:09

    You must set the strikethrough to the .text class: ;-)

    .itemCancelado {
        -fx-text-fill: red;
    }
    .itemCancelado .text {
        -fx-strikethrough: true;
    }
    

提交回复
热议问题