Originally posted by mohammed sanaullah: I am not able to get the Column Name on the top of each column. I am just getting the data values entered to the Table.
The thing is, a table is actually two components: the JTable itself and its JTableHeader. When used in a JScrollPane the JTableHeader is added automatically, otherwise you have to do it yourself: