DefaultTableModel model = new DefaultTableModel();
The code looks reasonable except the model contains no columns. Columns are not automatically created when you add a row of data.
Your code should be something like:
String[] columnNames = {"Column1", "Column2", "Column3", "Column4", "Column5"};
DefaultTableModel model = new DefaultTableModel(columnNames, 0);
Then when you add the rows you should see 5 columns of data.
Or for a better solution that will create the column names based on the SQL see the Table From Database Example
code found in Table From Database.