How to Highlight row table if given a condition?

前端 未结 1 1027
故里飘歌
故里飘歌 2021-01-23 11:32

I have a jtable which is consists of columns :

C No, Borrower, Market, Loan, Start, Daily, Expiry

how can i highlight the table row if the curr

相关标签:
1条回答
  • 2021-01-23 11:59

    Because you want to highlight every cell in the same row as a qualifying Expiry, you should override prepareRenderer(), as shown in this example and discussed in this Q&A. You can determine a matching row using the methods of Calendar. getInstance(), and you can change the color using the renderer's setBackground() method.

    0 讨论(0)
提交回复
热议问题