title: swing jtable display a number of rows by default
body: <p>I am developing a desktop application with java swing and NetBeans
    It uses a jtable with a custom table model to render data.
    I want to display a minimum number of rows with the table
     such that even when the actual number of rows to be displayed is less than the minimum value ,
   the table should display additional dummy rows to make up the minimum number.</p>
  
  <p>below are code nippets for the table model</p>
  
  <pre><code>public class MyTableModel extends AbstractTableModel {
  
      private List&lt;List&lt;Object&gt;&gt; dataList = new ArrayList&lt;&gt;();
       private String[] header = { "ID","SUBJECT","LETTTER FROM","LETTER DATE","DATE RECEIED",
                                    "REMARKS","DATE DISPATCHED","DESTINATION OFFICE"};
  
  
      public List&lt;List&lt;Object&gt;&gt; getDataList() {
          return dataList;
      }
  
      public void setDataList(List&lt;List&lt;Object&gt;&gt; dataList) {       
          this.dataList = dataList;
          fireTableDataChanged();       
          fireTableStructureChanged();        
      }
  
      public void setHeader(String[] header) {
          this.header = header;
      }
  
      public String[] getHeader() {
          return header;
      }
  
      @Override
      public int getRowCount() {
          return dataList.size();
      }
  
      @Override
      public int getColumnCount() {
          return header.length;
      }
  
      @Override
     public String getColumnName(int col) {
      return header[col];
     }
  
      @Override
      public Object getValueAt(int row, int col) { 
      return dataList.get(row).get(col);
      }
  
      @Override
       public Class&lt;?&gt; getColumnClass(int column)
          {
              for (int row = 0; row &lt; getRowCount(); row++)
              {   
                  Object o = getValueAt(row, column);
  
                  if (o != null)
                  {
                      return o.getClass();
                  }              
              }
              return Object.class;
          }
      }
  </code></pre>
  
  <p>any suggestions available.</p>