I have founds loads of examples that change the background color of JTabbedPane
using either setBackgroundAt()
and UIManager.put("JTabbedPane...")
However, I want to create an onclick
event on a checkbox that changes the background color to green when you select it, and back to default when you unselect it.
I haven't been able to make that work using the above methods.
Any ideas?
PS: I can change the foreground color by using setForgroundAt()
but not the background for some reason