I'm writing a java application which uses a JTable, but the issue I'm having when I run it, the column names do not appear. I'm configured Eclipse to compile as a Java 1.5 code successfully, but never got a working table despite not having any errors.

Code:
String Newdata[][] = {{"","","","",""},{"","","","",""},{"","","","",""},{"","","","",""}};
String col[] = {"col1", "col2", "col3", "col4", "col5"};
DefaultTableModel model = new DefaultTableModel(Newdata,col);
JTable tblEdits = new JTable(model);
From these 4 lines, I expected to see a table with 5 columns and 5 rows (including header with cols names). I put my JTable on a JPanel as it would be displayed. Am I doing anything wrong with this snippet?