JTable with striped background

前端 未结 5 1441
北恋
北恋 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:23

    The JXtable provided by swingx allow you to implements such rendering Take a look at http://swinglabs.org/docs/components/JXTable/tutorial.jsp?step=3#RowHighlighting

提交回复
热议问题