I've been working on a project which uses Java's Swing class for the first time and I have been implementing a JMenuBar. I want the ability for users to swap color schemes, but I can't figure out how to swap the text color.
So far, I have attempted to set the JMenuBar to opaque, and setting the Foreground color to the color I want it to be (similar to how labels are used) using the .setForeground() method. When I used the .setBackground() method, it worked perfectly for the background of the JMenuBar..
You would need to set the foreground of each
JMenuthat you add to the menu bar.