JTable with striped background

前端 未结 5 1347
北恋
北恋 2021-02-06 06:14

Using a different background color for odd and even rows is a commonly used trick to improve readability of large tables.

I want to use this effect in Swing\'s JTable.

5条回答
  •  礼貌的吻别
    2021-02-06 06:21

    Either use JXTable or if you are super-lazy ( or super time-short :-)) ) you can just use "Nimbus" look-and-feel, JTable looks there stripped by default :)

提交回复
热议问题