I use these following code to initialize the JTable(of course, there are some other codes to setup the TableColumn objects). My problem is that the header of the table is not shown up? Can anyone give me some direction?
I know that in the constractor of JTable, I can provide a parameter corresponding to the columns headers. But since I use default construct, if there any way to setup the header later?
JTable contractorTable = new JTable(); ContractorTableData data = new ContractorTableData();//extends abstractTableModel contractorTable.setModel(data);