title: Fill row values to SWING JTable JAVA using an arrayList values
body: <p>I want to add and fill rows dynamically to JTable according to the arrayList data.
  JTable column headers are fixed. for ex: 3
  According to the column count, row by row should display.</p>
  
  <p>Here values1 is a arrayList. It contains all row data values.</p>
  
  <p>values2 is another array list to extract row values according to the number of columns.</p>
  
  <pre><code>for (int v = 0; v &lt; values1.size(); v++) {
  
              values2.add(values1.get(v));
          }
  </code></pre>
  
  <p>I add row to JTable using this code.</p>
  
  <pre><code>       Object jFill[] = values2.toArray();
  
          model.addRow(jFill);
  </code></pre>
  
  <p>It will fill only first row ( 3 cells horizontally) since column count is 3. 
  How can I fill other data increasing the row number according to the values inside the
  values2 .</p>
  
  <p>Thank you.</p>