I am facing a problem in updating look and feel colors of the components dynamically. When i change background color of JButton(key is Button.background), background color of JComboBox, arrows(increment/decrement arrows) of ScrollBar is getting updated.
Below is the code sample i am trying to run:
changeMap contains the changed colors.
Changing ComboBox.background color is not having any effect on the comboboxes. They are simply picking up the button background.
Where as changing ComboBox.foreground color is working absolutely fine. I am able to see the change in combobox text color dynamically.
Am i doing something wrong here? Please let me know your valuable suggestions.
Thank you in advance