I know you can modify the LaF properties, but how do you accomplish this without doing such? I only ask because setBackground
doesn't seem to do it.
Note that I'm looking to change the following properties:
TabbedPane.background
(orTabbedPane.contentAreaColor
?)TabbedPane.tabAreaBackground
Using
TabComponentsDemo
as an example,setBackgroundAt()
seems to work:Addendum: As @camickr helpfully observed, the target component must be opaque.
You can also do the following:
or
for tab and panel backgrounds