【发布时间】:2012-02-03 20:09:57
【问题描述】:
我知道你可以modify the LaF properties,但是如果不这样做,你如何做到这一点?我只是问,因为setBackground 似乎没有这样做。
请注意,我希望更改以下属性:
-
TabbedPane.background(或TabbedPane.contentAreaColor?) TabbedPane.tabAreaBackground
【问题讨论】:
-
你的意思是标签本身的颜色
-
我的意思是标签页眉(即标题所在的位置)和内容区域。
-
我没有看到 setContentAreaBackground() 方法,所以看起来您需要创建一个自定义 UI 来执行此操作。
标签: java swing background-color jtabbedpane