I have already created an similar post where I asked that question as EDIT. But I do not think many people will see it like that. My question is, how I change the background color of a JTableHeader (So the Colors of the columns). I know that normaly
table.getHeader().setBackground(Color.blue);
should work, but this does not work when I set the LookAndFeel on Windows look and feel.
com.sun.java.swing.plaf.windows.WindowsLookAndFeel
It is recommended to use the below look and fee.
I provide below the complete runnable sample code where you can see the Blue color table header.
See below the image.
Also refer to the following link. http://leo.ugr.es/elvira/devel/Tutorial/Java/uiswing/misc/plaf.html To quote one line is