"Note that if you wish to use a JTable in a standalone view (outside
of a JScrollPane) and want the header displayed, you can get it using
getTableHeader() and display it separately."
Or just add the table to a scrollpane, and add your scrollpane to the panel...