Change the JTable header color

JTableHeader anHeader = aTable.getTableHeader();
anHeader.setForeground(new Color(0).yellow);
anHeader.setBackground(new Color(0).black);



If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2010
[ home ]