posted 13 years ago
I would like to change colors on my Swing app; I do not need to change anything else about the look and feel. I want to do this while the application is running.
I have found a method that, when put in a class that extends one of the basic look and feel classes, does some of what I want. It has the following method in it:
When I change to this look and feel while the app is running, a number of colors on the UI change. So far so good.
Some of the colors on the UI, however, do not change. Is there a way to add to the above method so that I have control over all (or at least more of) the colors?
For instance, the background color for the menu and toolbar do not change, and I would like them to. I also think I could make things better looking if I had control over the slider bars and their backgrounds, etc.
One frustrating thing is that the comments in the above code (which were included with the code, they aren't mine) don't seem to match what happens. For instance, one of them claims to be the color for title bar captions when they are active, another claims to be the color for the color of the window border, but I can't get any change to the UI by setting either of those colors.
Anyway, if someone knows where I could find a complete list of colors, or anything else of note about this method, I'd appreciate it.
rc