开发者

JTable Rowborder?

开发者 https://www.devze.com 2023-02-22 18:46 出处:网络
I wanna make a lineborder for a WHOLE ROW ! Not only for one cell,.开发者_如何学JAVA. i have different cellrenderers but i wanna make a border around these cells in one row..

I wanna make a lineborder for a WHOLE ROW ! Not only for one cell,.开发者_如何学JAVA. i have different cellrenderers but i wanna make a border around these cells in one row..

any idea? is there a DefaultRowRenderer, or something else?

Thanks a lot.


Table Row Renderering shows one approach for this without creating custom renderers.


If your cell renderer was smart enough not to draw the right hand side when in column 0, and not draw the left hand side when in column n - 1, then it would effectively look like a row border.

0

精彩评论

暂无评论...
验证码 换一张
取 消