简体   繁体   中英

Creating a JTable with customized look and feel

在此输入图像描述

I am pretty new to java swing and i just started working on JTable. I want to create a JTable Which look like the above image? Can anybody help me beacause i am not so familiar with JTable?

表行渲染显示了如何交替行颜色。

How can I achieve the border of the table header like the figure?

You can obtain a copy of the default table header renderer for a given L&F, as shown here , and modify it as desired. With some caveats , you can modify the renderer for a particular TableColumn , as shown here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM