java如何更改JTabbedPane的背景色?
我知道你可以{a1},但是如果不这样做,你怎么能做到这一点呢?我问这个问题只是因为setBackground
似乎做不到
请注意,我希望更改以下属性:
TabbedPane.background
(或TabbedPane.contentAreaColor
?)李>TabbedPane.tabAreaBackground
你可以在下面搜索框中键入要查询的问题!
我知道你可以{a1},但是如果不这样做,你怎么能做到这一点呢?我问这个问题只是因为setBackground
似乎做不到
请注意,我希望更改以下属性:
TabbedPane.background
(或TabbedPane.contentAreaColor
?)李>
TabbedPane.tabAreaBackground
# 1 楼答案
您还可以执行以下操作:
或者
用于选项卡和面板背景
# 2 楼答案
以^{} 为例,
setBackgroundAt()
似乎有效:附录:@camickr很有帮助地观察到,目标组件必须是opaque