The testcase below shows that TableHeaders are not being painted properly. ***TESTCASE*** import java.awt.*; import javax.swing.*; class TableHeaderTest { public static void main(String args[]) { JFrame jf = new JFrame(); JTable table; JScrollPane scrollPane; // Create columns names String columnNames[] = { "Column 1", "Column 2", "Column 3" }; // Create some data String dataValues[][] = { { "12", "234", "67" }, { "-123", "43", "853" }, { "93", "89.2", "109" }, { "279", "9033", "3092" } }; // Create a new table instance table = new JTable( dataValues, columnNames ); // Add the table to a scrolling pane scrollPane = new JScrollPane( table ); jf.add( scrollPane, BorderLayout.CENTER ); jf.setSize( 300, 200 ); jf.show(); } }
Created attachment 9983 [details] patch
Fixed.