how to change button color
Hi, I am new to java swing and I need a little bit help.
In my application I want confirm and cancel button and I want to have theese buttons colored. One green and other red. But I do not know how to do it. When I change the background color, the color is changed behind the button and the button is stil grey and when I changed foreground it changes the color of the button label.
But whatever I have done I was not able to change the button color from the default grey. Please can you advice me how to do it?