How to change the color of a JTable entire row having a particular column value

前端 未结 3 1281
时光取名叫无心
时光取名叫无心 2020-12-21 11:18

I have a Jtable which gets populated from an array of values. My code is like this:

  private static final String[] columnNames = {\"Line Number\", \"Error\"         


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

    See the approach in Table Row Rendering for a solution without creating custom renderers.

    You may also want to check out Table Format Renderers so you can format the percentage column easily.

提交回复
热议问题