I have a program where I let users choose a standard or colorful option for the scheme, and all of the sudden without any reason why, the background colors are just showing up on the perimeter of the button, but staying gray inside.
All I did was copied and pasted a my methods from Eclipse over to NetBeans, because the licensing libraries I use only work on NetBeans, but it is 100% the exact same code, but it will not show the button colors. I don't understand why.
Here are 2 photos. The one with the gray buttons is the malfunctioning one.
Have you tried experimenting with myButton.setContentAreaFilled(true) yet?
It may be that Netbeans is using a different look and feel, or something like that, which is setting this property differently.