Does anyone know why once a JTable has been added to a JScrollPane I can no-longer call JScrollPane.setColumnHeaderView? It appears to work fine if I have anything else in the viewport, just not a table.
I would like to override the behavior of the JTable adding its TableHeader to the ColumnHeader of the ScrollPane and overriding the JTables configureEnclosingScrollPane is not an option.
Am I missing some obscure listener which re-adds the TableHeader? Any suggestions on this would be much appreciated.