简体   繁体   English

JTable 如何更改行颜色?

[英]JTable how to change row color?

Why are my table(2) rows are all the same color?为什么我的表(2)行都是相同的颜色? How can I make it grey row white row like in the table marked 1?我怎样才能使它像标记为 1 的表中的灰色行白色行?

2 是我的桌子 1 是互联网上的桌子

It turns out it was because I was running NetBeans on dark mode.原来是因为我在暗模式下运行 NetBeans。 When I switched to light mode it works just fine.当我切换到灯光模式时,它工作得很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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